byte | 1 | Byte |
short | 2 | Short |
int | 4 | Integer |
long | 8 | Long |
float | 4 | Float |
double | 8 | Double |
char | 2 | Character |
boolean | 1 | Boolean |
基本数据类型及其包装类的对应关系(占用字节)
最新推荐文章于 2023-03-08 11:33:35 发布
byte | 1 | Byte |
short | 2 | Short |
int | 4 | Integer |
long | 8 | Long |
float | 4 | Float |
double | 8 | Double |
char | 2 | Character |
boolean | 1 | Boolean |