Pritimitive Data Types Size & its Values For JAVA

Pritimitive Data Types Size & its Values For JAVA

Data Type Size Value Range
1. Byte 1 byte -128 to 127
2. short 1 byte -32,768 to 32,767
3. int 2 byte -2,147,483,648 to 2,147,483,647
4. float 4 byte 3.40282347 x 1038 to 1.40239846 x 10-45
5. long 8 byte -9,223,372,036,854,775,808 to 9,223,372,036,854,775,807
6. double 8 byte 1.7976931348623157 x 10308, 4.9406564584124654 x 10-324
7. char 2 byte 0 to 65,535
8. boolean Depends on JVM True or False