数据类型 | 字节长度 | 取值范围 |
---|
byte | 1 | -128~127 |
short | 2 | -32768~32767 |
int | 4 | -2147483648~2147483647 |
long | 8 | -9223372036854775808~9223372036854775807 |
float | 4 | 3.4 x 10^38 |
double | 8 | 1.79 x 10^308 |
boolean | 1(位) | true,false |
char | 2 | 一个字符 |
标签:10,Java,字节,32768,数据类型,长度,取值
来源: https://blog.csdn.net/Un_LostPurpose/article/details/119211328