Data types in Java can be broadly classified into two different categories: primitive data types and non-primitive data types.
- Primitive data types
- Non-Primitive data types
Java is a statically typed language. The program variables must be declared before using them. We need to specify the variable’s data type and the variable name.
Primitive Data Types
Java is a strongly typed language. It means that every variable has a type. Java has eight primitive data types. They can be further classified into:
Numeric Data types
Non-Primitive Data Types
Java Tutorial on this website:
For more information on Java, visit the official website :