
Data type  Encoding method 

byte  2's complement encoding using 8 bits 
short  2's complement encoding using 16 bits 
int  2's complement encoding using 32 bits 
long  2's complement encoding using 64 bits 
float  IEEE 754 encoding using 32 bits 
double  IEEE 754 encoding using 64 bits 
char  Unicode encoding using 16 bits 
boolean  Enumeration encoding using 0 = false and 1 = true 
For more information on information storage inside a computer: click here






