There are four basic types in Java, of which integer is divided into Byte, short, int, long, floating-point type float, double, char, Boolean. 8 Types of levels from low to high byte->short/char->int->long->float->double.
Basic data type conversions in Java are divided into implicit type conversions (automatic type conversions) and explicit type conversions (coercion type conversions).
Implicit type conversion is the assignment of a lower-level value or variable to a higher level variable, in which case Java automatically converts the lower-level variable or value to the same levels as the higher-level variable. During the period, the programmer does not need to do any action.
Explicit type conversions artificially convert a higher-level variable to a lower-class variable in the form of a value that is converted (the type to be converted). It is important to note that the loss of precision can result if an explicit type conversion is made.
About basic data type conversions in Java