PRIMITIVE DATA TYPES
NOTE: The data types should always start with small letters.
There are four types of Primitive data types.
Integer
Floating
Character
Boolean
Integer :
byte - 8 bits / 1 byte
short - 16 bits / 2 bytes
Int - 32 bits / 4 bytes
long - 64bits / 8 bytes
Floating :
float - 32 bits / 4 bytes
double - 64 bits / 8 bytes
Character :
char - 16 bits / 2 bytes
Boolean :
boolean - 1 bit / 1 byte
777
DESCENDING ORDER TO ASCENDING ORDER OF PRIMITIVE DATA TYPES
double - 64 bits / 8 bytes
long - 64bits / 8 bytes
float - 32 bits / 4 bytes
int - 32 bits / 4 bytes
char - 16 bits / 2 bytes
short - 16 bits / 2 bytes
byte - 8 bits / 1 byte
boolean - 1 bit / 1 byte
ASCENDING ORDER TO DESCENDING ORDER OF PRIMITIVE DATA TYPES
boolean - 1 bit / 1 byte
byte - 8 bits / 1 byte
short - 16 bits / 2 bytes
char - 16 bits / 2 bytes
int - 32 bits / 4 bytes
float - 32 bits / 4 bytes
long - 64bits / 8 bytes
double - 64 bits / 8 bytes
0 Comments