Data
Type
|
Size
|
Default
value
|
Range
of values
|
byte
|
8 bit
|
0
|
Minimum value -128 and maximum value 127
|
short
|
16 bit
|
0
|
Minimum value -32,768 and maximum value 32,767
|
int
|
32 bit
|
0
|
Minimum value -231 and
maximum value 231-1 ,In Java SE 8
Minimum value 0 and maximum value 232-1
|
long
|
64 bit
|
0L
|
Minimum value -263 and
maximum value 263-1.
In Java SE 8 Minimum value 0 and maximum
value 264-1
|
float
|
32 bit
|
0.0f
|
|
double
|
64 bit
|
0.0d
|
|
char
|
16 bit
|
‘\u000’
|
Minimum value ‘\u000’ or 0 and maximum value ‘\uffff’
|
boolean
|
1 bit
|
false
|
|
Comments
Post a Comment