In Java, data types specify the kind of value a variable can hold.
- Java is a strongly typed language, meaning each variable must be declared with a data type before use.
Types of Data Types in Java:
Java data types are broadly classified into:
- Primitive Data Types
- Non-Primitive (Reference/Object) Data Types
1.) Primitive Data Types:
These are the most basic data types built into the Java language.

2.) Non-Primitive (Reference) Data Types:
These are objects or references to objects.
