1. Basic type: Long8,int4,byte1,float4,double8,char2,boolean,short2
No attribute method, only mathematical operation, cannot save null;
All basic data types in Java have a fixed storage range and the size of the occupied memory space, and are not affected by the specific operating system to ensure the portability of Java programs
2. Conversions between basic data types
Automatic type conversion: Small capacity can be automatically converted to large-capacity data types,
Forced type conversions: Large capacity conversion to small capacity with possible accuracy reduction or data overflow
3. Object type (Class): Long,integer,byte,float,double,char,string ....
There are property methods that can set NULL values
Long is a long wrapper class, other similar
4. Crating and Unpacking
JDK5.0 provides automatic boxing and unpacking for basic data types
Java Data types