.jpg)

-
数据类型:决定了变量占据多大的空间,决定了变量存储什么类型的数据
-
整形:
-
byte 1个字节
-
short 2个字节
-
int 4个字节
-
long 8个字节
-
浮点型:
-
float 4个字节
-
double 8个字节
-
布尔型
-
boolean 1个字节
-
字符型
-
char 2个字节
注:一个字节范围:-128到127,整数默认看成int类型,小数默认堪称double类型 ,
-
unicode编码
-
'a': 97 'A':65 0: 48往后依次+1
-
类型转换
-
强制转换
-
自动转换