数据类型 | 位 | 默认值 | 取值范围 |
byte(位) | 8 | 0 | -2^7~2^7-1 |
short(短整型) | 16 | 0 | -2^15~2^15-1 |
int(整型) | 32 | 0 | -2^31~2^31-1 |
long(长整型) | 64 | 0 | -2^63~2^63-1 |
float(单精度) | 32 | 0.0 | -2^31~2^31-1 |
double(双精度) | 64 | 0.0 | -2^63~2^63-1 |
char(字符) | 16 | null | 0~2^16-1 |
boolean(布尔型) | 8 | false | true,false |
java数据类型
最新推荐文章于 2024-09-08 20:00:00 发布