data type size (bit) range default value
byte (bytes) 8-128-127 0
shot (short-integer) 16-32768-32768 0
int (integral type) 32-2147483648-2147483648 0
long (length) 64-9233372036854477808-9233372036854477808 0
float (float type) 32-3.40292347e+38-3.40292347e+38 0.0f
double (dual precision) 64-1.79769313486231570e+308-1.79769313486231570e+308 0.0d
char (character type) \u0000-u\ffff ' \u0000 ' uses the Unicode value represented by the format ' \uxxxx ’。 The XXXX represents a hexadecimal integer. such as: ' A ', ' 9 ', ' 0 ' and so on.
Boolean (Boolean) 1 True/false false
Original code: The value of itself.
The original code symbol bit invariant, and other bits to reverse, get back code--plus 1 to get the complement.
Complement minus 1, to get anti-code and anti-code sign bit unchanged, the other bits to take the reverse, get the original code.
Basic data types for Java