(1)标识符
(2)基本数据类型
1. 逻辑类型
关键字:boolean 常量:true,false
boolean ok=true,关闭=false;
2. 整数类型
byte 1字节 ,short 2字节 ,int 4字节 ,long 8字节
3. 字符类型
即Unicode表中的字符
4.浮点类型
(3)基本数据类型的转换
int x=(int)12.34;
byte a=(byte)128; //输出结果为-128 byte b=(byte)-129; //输出结果为127
原文:https://www.cnblogs.com/aleutian/p/14710682.html