1.数据类型
1.基本数据类型
2.引用数据类型
2.基本数据类型的四类八字
1.整数: type short int long
2.浮点数:float double
3.字符:char
4.布尔:boolean
3.byte的取值范围
-128<=byte<=127
4.整数和小数取值范围大小关系
double>float>long>int>short>byte
5.注意
long类型变量:需要加入L标识(建议大写)
float类型变量:需要加入F标识(建议大写)
1.基本数据类型
2.引用数据类型
1.整数: type short int long
2.浮点数:float double
3.字符:char
4.布尔:boolean
-128<=byte<=127
double>float>long>int>short>byte
long类型变量:需要加入L标识(建议大写)
float类型变量:需要加入F标识(建议大写)