For Java basic data types, I'm really interested in reference data types, and here I'm mostly talking about application data types.
The recommended two URLs for Java basic data types are:
1.http://blog.sina.com.cn/s/blog_745b874b0101jqqv.html
2.http://www.w3cschool.cc/java/java-basic-datatypes.html
Reference data type:
Class, interface type, array type, enumeration type, annotation type;
When a reference data type is created, it first allocates a piece of memory to its reference (handle) on the stack, and the object's specific information is stored on the heap memory, and then the reference above the stack points to the address of the object in the heap.
For example, there is a class person, with attribute Name,age, with the constructor of the parameter,
person p = new Person ("Tom", 20);
in-memory specific creation process is:
1. First in the stack memory bit its p allocated a space;
 2. Assign a space to the person object in heap memory and set the initial value for its three properties "", 0;
 3. Assign operations to two properties of the object based on the definition of the property in the class person;
4. Call the constructor method, assign a value of two to "Tom", 20, (note that there is no connection between p and the person object at this time);
5. The address of the person object in the heap memory is assigned to p in the stack, and the handle p allows you to find specific information about the objects in the heap.
Java Review 4 Java basic data types