The 1.Java data types fall into three main categories
Boolean, type and numeric
The numerical type is also divided into integral type and floating point type.
Variable type of 2.Java
Boolean-Type Boolean
Character Char
Integral type Byte,short,int,long
Floating-point float,double
3. Data type Conversion
Data type conversions in Java are divided into three types, simple data type conversions, strings and other type conversions, and other useful data type conversions
(1) Simple data type conversion
In Java, Integer, real, and character types are considered simple data type.
These types are from low to High: (Byte,short,char), int---Float
from low-level variables to advanced variables that is automatic type conversion, from advanced variables to low-level variables that is forced type conversion , wrapper class transition type conversion
(2) Low-level variables can be converted directly to advanced variables
such as: Byte B;
int i=b;
float f=b;
If the low-level type is char, the conversion to the advanced type (int) is converted to the corresponding ASCII code value.
Data type conversions in Java