Data Structure in Java

The variables in the Java language must have a data type.

A variable’s type determines the values that the variable can have and the operations that can be performed on it.

The eight primitive data types are: byte, short, int, long, float, double, boolean, and char.