Java examples for Language Basics:Primitive Types
Java has eight primitive data types.
They are byte, short, int, long, char, float, double, and boolean.
They are divided into two categories: boolean data type and numeric data type.
The numeric data type can be subdivided into integral and floating-point types.
An integral data type is a numeric data type whose values are integers.
Java offers five integral data types: byte, short, int, long, and char.