Primitive Variables

Programing 2007.08.30 00:08 Posted by 애플자라
boolean
true / false
 

char
2byte = 16bit
0 ~ 65535
 

byte
1byte = 8bit
-2^7 ~ 2^7 -1
-128 ~ 127
 

short
2byte = 16bit
-2^15 ~ 2^15 -1
-32768 ~ 32767
 

int
4byte = 32bit
-2^31 ~ 2^31 - 1
-2147483648 ~ 2147483647
 

long
8byte = 64bit
-2^63 ~ 2^63-1
-9223372036854775808 ~ 9223372036854775807
 

float
4byte = 32bit


double
8byte = 64bit

댓글을 달아 주세요