The first type: logical boolean
The second type: text type char
The third category: integer type (byte, short, int, long)
char type occupies 2 bytes
short from -32768 to 32767
int from -2147483648 , to 2147483647, a total of 10 digits
long from -9223372036854775808 to 9223372036854775807, a total of 19 digits
The above is the detailed content of Summary of Java's four and eight basic data types. For more information, please follow other related articles on the PHP Chinese website!