1.基本数据类型(8种)
数字类型:
整数:
byte :-128~+127
short :-32768~+32767
int: -2147483648~+2147483637
long
小数类型:
float
double
字符类型:
char: 'a' 'b' '你'
boolean:true false
public class Student { public static void main(String[] args) { byte x = 127; System.out.println(x); } }
2.扩展数据类型