Basic data types and properties of Java
- 2020-04-01 01:30:02
- OfStack
The data type
The size of the
The scope of
The default value
Byte (bytes)
8
- 128-127
0
Shot (short integral)
16
- 32768-32768
0
Int (integer)
32
- 2147483648-2147483648
0
Long (long integer)
64
- 9233372036854477808-9233372036854477808
0
Float, float, float, float
32
- 3.40292347 e - 3.40292347 e
0.0 f
Double precision
64
1.79769313486231570 e+308 1.79769313486231570 e+308
0.0 d
Char (character type)
16
'\u0000 - u\ FFFF'
'\ u0000'
Boolean (Boolean type) 1 True/false
Boolean (Boolean type) 1 True/false
false