Java 8种数据类型大小

类型 大小
int 4个字节
char 2个字节
byte 1个字节
short 2个字节
long 8个字节
float 4个字节
double 8个字节
1 byte = 1字节  = 8bit 

猜你喜欢

转载自blog.csdn.net/baidu_36327010/article/details/79727264