Java data types
Java data types include eight basic data types and reference types.
Eight basic data types
- byte 8th
- short 16 bits
- int 32 bit
- long 64 bit
- float 32 bit
- double 64位
- char Single 16-bit Unicode character
- boolean
When we use it, we don't need to memorize the binary digits of each data type, the stored maximum and minimum values, because their values have been defined in the corresponding packaging class in the form of constants. For example, to query the binary number, directly call the SIZE method, the maximum value calls the MAX_VALUE method, and the minimum value calls the MIN_VALUE
Reference type
- Class
- Interface
- Array ([])
It should be noted that String is a reference type, because String is a class!
Finally, thank you for your support!