Java中的数据类型大体上分为两种 基本数据类型 整型 byte 占用1个字节 short 占用2个字节 int 占用4个字节 long 占用8个字节 字符型 char 2个字节 浮点型 float 4个字节 double 8个字节 布尔型 boolean 1个字节 引用数据类型 数组,类,接口