java 中的基本数据类型

八大数据类型

整型



1•  byte, 占1个字节, 8位.
 2•  short, 占2个字节,16位.
3  int, 占4个字节,32位.
       4  long, 占64个字节; 8位.

字符型



5•  char, 占1个字节, 8位.

浮点型



  6•  float, 占float 4个字节,单精度.
    7•  double, 占double 8个字节,双精度.


布尔型


 

  1. 8•  boolean, 占8个字节, 1位.

猜你喜欢

转载自www.cnblogs.com/hello-dummy/p/9161720.html