There are two types:
- Primitive data types
- Non-primitive data types
- Boolean ---> boolean
- Numeric
- Character ---> char
- Integral ---> Integer and Floating point
Integer numeric primitive data types are also four types:
- byte
- short
- int
- long
Floating point numeric primitive data types are also four types:
- float
- double
Non-primitive date types:
- string
- array
- etc
-----------------------------------------------------------------------------------------------
Data types| Default Value| Default size|
-----------------------------------------------------------------------------------------------
boolean false 1 bit
char "\u0000" 2 byte
byte 0 1byte
short 0 2 byte
int 0 4 byte
long 0L 8 byte
float 0.0f 4 byte
double 0.0d 8 byte
-----------------------------------------------------------------------------------------------
Remember: one byte = 8bits