The basic data types of java language refer to eight basic data types: byte type, short integer type, int type, long integer type, Boolean type, char type, single precision floating point type and double * * * precision floating point type. Reference data types refer to class, enumeration, interface and array types.
The difference between them is that variables of basic data type store the value of data itself, while variables of reference type store the address of data, and the address points to the value of data.