基本数据类型 8个

    1. 整型(4个) byte short int long
    2. 浮点型(2个) float double
    3. 字符型(1个) char
    4. 布尔型(1个) boolean

    byte 字节型 ——》8个bit 敏感单元位
    1byte=== 8bit 00000000 256种组合
    用第一个bit位置来记录符号 0正数 1负数
    取值范围:-2的7次方 ~ 2的7次方-1
    -128 ~ 127

    其他整数类型一次乘2

    float 32bit 4字节
    0 000000000 000000000000000000000
    第一个表示符号,后面9个表示整数

    char 16bit 2字节
    中文两字节

    boolean 1bit
    0 1

    引用数据类型

    1. 数组[]
    2. 类class
    3. 接口interface
    4. 枚举enum
    5. 注解@interface