Java has eight primitive data types: byte, short, int, long, char, float, double, and boolean.
They are divided into two categories:
Category | Data Types |
---|---|
boolean data type | boolean |
numeric data type | byte, short, int, long, char, float, double |
The numeric data type can be further subdivided:
Category | Data Types |
---|---|
integral types | byte, short, int, long, char |
floating-point types | float, double |