Bruce Eckel's Thinking in Java | Contents | Prev | Next |
all the objects
Primitive
type
|
Size
|
Minimum
|
Maximum
|
Wrapper
type
|
---|---|---|---|---|
boolean
|
1-bit
|
–
|
–
|
Boolean
|
char
|
16-bit
|
Unicode
0
|
Unicode
2
16-
1
|
Character
|
byte
|
8-bit
|
-128
|
+127
|
Byte[11]
|
short
|
16-bit
|
-215
|
+215
– 1
|
Short1
|
int
|
32-bit
|
-231
|
+231
– 1
|
Integer
|
long
|
64-bit
|
-263
|
+263
– 1
|
Long
|
float
|
32-bit
|
IEEE754
|
IEEE754
|
Float
|
double
|
64-bit
|
IEEE754
|
IEEE754
|
Double
|
void
|
–
|
–
|
–
|
Void1
|
Character C = new Character(c);