Step 1: download the JDK installation package. Here we download the jdk8 version of the official website of orical.
Note: please check accept when downloading.
Unpack and decompress after downloading:
tar zxvf jdk-8u162-linux-x64.tar.gz
Put JDK under / usr/lib/jdk8
mv jdk1.8.0_131/ /usr/lib/jdk8
Modify environment variables
Posted by harris97 on Wed, 01 Apr 2020 17:40:18 -0700
Joda time provides a set of Java class packages to handle date and time, including the ISO8601 standard. It can be used to completely replace JDK Date and Calendar classes, and still provide good integration.
Joda time's main features include:
1. Easy to use: Calendar makes it difficult to get the "normal" ...
Posted by phpcode on Tue, 31 Mar 2020 16:09:36 -0700
1. Download jdk7 (download it on the official website)
Download address: http://www.oracle.com/technetwork/java/javase/downloads/java-archive-downloads-javase7-521261.html
1.1 before downloading, check whether the system is 32-bit or 64 bit
[root@redis ~]# getconf LONG_BIT
I am 64 bit here, so I choose to downloa ...
Posted by fr600 on Tue, 31 Mar 2020 12:36:03 -0700
Visitor Pattern is a design pattern that separates data structure from data operation.It refers to the encapsulation of operations that act on various elements in a data structure. It can define new operations that act on these elements without changing the data structure.
Visitor mode is called the most complex design mode and is not used freq ...
Posted by A JM on Sun, 29 Mar 2020 21:03:38 -0700
Author: Cen Yuhttps://www.cnblogs.com/cenyu/p/6289209.html
Proxy is a design pattern that provides additional access to the target object; that is, it accesses the target object through the proxy object. The advantage of this is that you can enhance additional functional operations, that is, extend the capabilities of the target ...
Posted by tlenker09 on Thu, 26 Mar 2020 23:52:48 -0700
In the last article< Java agent pattern and dynamic agent >In Java, we introduce the static proxy mode and dynamic proxy mode, and take JDK native dynamic proxy as an example to explain. In this article, we will introduce the dynamic agent based on CGLIB and compare it with the native dynamic agent.
CGLIB(Code Generatio ...
Posted by Tekron-X on Mon, 23 Mar 2020 18:43:56 -0700
Java's dynamic proxy has a wide range of usage scenarios in practice, such as Spring AOP for the most scenarios, acquisition of Java annotations, logging, user authentication, and so on.This article takes you through proxy mode, static proxy, and native dynamic proxy based on JDK.
Whether you are learning static or dynamic proxies ...
Posted by Majes on Fri, 20 Mar 2020 21:05:53 -0700
Source code analysis of HashMap (JDK1.8)
This is one of the series that I forgot to read again. Today I have time to write a document and record it. I hope I can slowly understand their excellent ideas from the JDK source code. This paper mainly records the following aspects.
1. Inheritance and implementation structure of HashMap
2. Constructor ...
Posted by andymike07 on Wed, 18 Mar 2020 05:15:50 -0700
The original String type is so powerful, I just thought it was used to define a String. Next is a day to learn String type by doing homework.At the end of the article, there is the help document of JDK API 1.6 in Chinese. It is necessary for novices to get it for free! Brother, I have been looking for i ...
Posted by louisp on Mon, 16 Mar 2020 21:31:05 -0700
Why Steam is needed
Steam in Java 8 is an enhancement of collection object function. It focuses on a variety of very convenient and efficient aggregate operations or bulk data operations for collection objects
With the help of the same new Lambda expression, the Steam API greatly improves programmin ...
Posted by leewad on Mon, 16 Mar 2020 00:23:52 -0700