标签:tab 空间 int als har 字节 基础 false 占用
1byte = 8bit 8位为1个字节
| 类型 | 占用空间 | 取值范围 |
|---|---|---|
| byte | 1byte | -2^7 ~ 2^7-1 (-128~127) |
| short | 2byte | -2^15 ~ 2^15-1 (-32768-32767) |
| int | 4byte | -2^31 ~ 2^31-1 (-2147483648-2147483647) |
| long | 8byte | -2^63 ~ 2^63-1 |
| float | 4byte | 3.402823e+38 ~ 1.401298e-45 |
| double | 8byte | 1.797693e+308 ~ 4.9000000e-324 |
| char | 2byte | 0~65535 |
| boolean | 1byte | true,false |
标签:tab 空间 int als har 字节 基础 false 占用
原文地址:https://www.cnblogs.com/landiss/p/14290898.html