一、基本数据类型
整 型(4个) byte(字节型) short(短整型) int(整型) long(长整型)
1 byte == 8 bit 0 0000000
用第一个bit的位置记录符号 0是正数,1是负数
数值范围为
short 2byte == 16bit
int 4byte == 32bit
long 8byte == 64bit
浮点型(2个) float(单精度) double(双精度)
4byte == 32bit 0 000000000 0000000000000000000000
符号 正数部分 小数部分
float 4byte == 32bit
double 8byte == 64bit
字符型(1个) char
2byte == 16bit
布尔型(1个) boolean
1bit 0代表false,1代表true
二、引用数据类型
数组
接口(interface)
枚举(enum)
注解(@interface)
类class(抽象类 abstract class)
