java中数据类型分为:
1、基本数据类型(primitive type)
2、引用数据类型(reference type)
基本数据类型如下
整型
byte(占1个字节范围):-128~127;
short(占2个字节范围):-32768~32767;
int(占4个字节范围):-2147483648~2147483647;
long(占8个字节范围):-9223372036854775808~922337203654775807;
浮点型
float(占4个字节):
double(占8个字节):
字符
char(占2个字节):
布尔型
boolean(占1位在、其值只有false和true):true or false