基本类型 | 包装器类型 |
---|---|
int(32位) | Integer |
byte(8位) | Byte |
short(16位) | Short |
long(64位) | Long |
float(32位) | Float |
double(64位) | Double |
char(根据编码决定, 选择的编码每个长度是多少,占位就是多少) | Character |
boolean(32位) | Boolean |
java 基本数据类型和包装器类型
最新推荐文章于 2024-08-11 20:00:32 发布
基本类型 | 包装器类型 |
---|---|
int(32位) | Integer |
byte(8位) | Byte |
short(16位) | Short |
long(64位) | Long |
float(32位) | Float |
double(64位) | Double |
char(根据编码决定, 选择的编码每个长度是多少,占位就是多少) | Character |
boolean(32位) | Boolean |