Java Data Type, Primitive and Non-Primitive Data type, Java Variables
Java defines the two different types of data types, primitive types data, and non-primitive types data respectively. Primitive has eight data types: short, int, long, float, double, byte, char, and boolean while non-primitive has three types of data types: string, array, and classes.