Variable and Datatype

Data Types

Data TypeDefault ValueDefault size
boolean false1 bit
char'\u0000'2 byte
byte 0 1 byte
short0 2 byte
int04 byte
long 0L 8 byte
float 0.0f 4 byte
double 0.0d 8 byte

Any Question ?