Java 8种数据类型

整型
1个字节占8位

  1. byte 1字节 -128~127
    2 short 2字节
    3 int 4字节
    4 long 8字节
    浮点型
    5 float 2字节 单精度
    6 double 4字节 双精度 用的最多
    字符型
    7 char 占用两个字节 采用的是Unicode编码格式,支持中文
    布尔型
    8 boolean
    true 真
    false 假
posted @ 2019-07-11 21:28  鱼皮  阅读(4)  评论(0)    收藏  举报