Data type:
##Notes:
1: In the Java development process, int is used for integers, double is used for decimals, and boolean is used for booleans; 2: Type conversion is all about conversion from a small range to a large range. Conversion from a large range to a small range requires the use of forced conversion. ;For example: (1)int a=12;double b=a;(2)double a=3.0;int b=(int)a;3:long,byte, Char, etc. are rarely used and are generally used in data processing; 4: The conversion between int and char is through ASCII conversion; For example: char a =' A';int b=a;System.out.prientln(b);The final output result is 65;5: String type, String is the essential and most used data type in the project, it Belongs to the category of "class" in reference data types.Encapsulation class of basic data types
## Recommended tutorial:
Java tutorialThe above is the detailed content of What are the data types in java. For more information, please follow other related articles on the PHP Chinese website!