Types of | name | Occupancy size | Defaults | Ranges |
---|---|---|---|---|
Integer | byte | 1 | 0 | -128~127 |
Integer | short | 2 | 0 | -32768~32767 |
Integer | int | 4 | 0 | -D14 ~ 2147483647 |
Integer | long | 8 | 0 | Power of -2 to 63 -1 2 63 th |
Floating-point type - single precision | float | 4 | 0.0 | 3.402823e+38~1.401298e-45 |
Floating-point type - single precision | double | 8 | 0.0 | 1.797693e + 308 ~ 4.9000000e-45 |
Character | char | 2 | air | \ U0000 ~ \ uFFFF |
Boolean | boolean | false | false/true | |
Special type - Object | String | null |
Eight data type of the data
Guess you like
Origin blog.csdn.net/weixin_44267258/article/details/100663094
Ranking