Introduction to Java basic types

Integer
Basic data type Rank bit (byte)
long 64th 8bit
int 32nd place 4bit
short 16th place 2bit
byte 8th place 1bit
Floating point
Basic data type Rank bit (byte)
float 32nd place 4bit
double 64th 8bit
Character type
Basic data type Rank bit (byte)
char 16th place 2bit (store a Chinese character)
Boolean
Basic data type Rank bit (byte)
boolean First place 1/8bit

Guess you like

Origin blog.csdn.net/u011148116/article/details/78466273