整数类型
byte 1个字节(8位,-127--127)
short 2个字节(16位)
int 4个字节 (32位)
long 8个字节 (64位)
浮点类型
float 4个字节
double 8个字节
其他
char 2个字节
boolean 1位
String,接口,数组等
javaSE 数据类型
原文:https://www.cnblogs.com/yyKing/p/13380948.html