java中的四类八种

第一类 整型 byte short int long
第二类 浮点型 float double
第三类 布尔型 boolean
第四类 字符型 char
在内存中所占得字节
boolean 1
byte 1
char 2
short 2
int 4
float 4
long 8
double 8

原文地址:https://www.cnblogs.com/wuyiping/p/13931042.html