Java Reference
In-Depth Information
long
64-bit
0L
-9,223,372,036,854,775,808 to 9,223,372,036,854,775,807
byte
8-bit
0
-128 to 127
float
32-bit
0.0f
1.40129846432481707e-45 to 3.40282346638528860e+38
double
64-bit
0.0d
4.94065645841246544e-324d to 1.79769313486231570e+308d
char
16-bit
'\u0000'
0 to 65,535
boolean
1-bit
False
True or False only
Non-Primitive data types
Non-primitive data types are not predefined data type in any programming language. They
are created by the programmer for their use and efficiency of a program. These variables
are also known as reference variables.
Non-primitive data types in Java include Arrays, Interfaces and class.
 
Search WWH ::




Custom Search