The Datatypes are represent the type of data that we can store into memory. The datatypes in Java are classified into 3 types.
Primitive data type:
The primitive datatypes are predefined and designed to store a single value.
Example: int, char etc..
Derived data type:
The derived data types are predefined and designed to store a multiple values.
User defined data type:
If a datatype is created by the user or the programmer, then it is called as user defined data type. Using the user defined data type we can store any number of values and any type of values, according to the application requirement.
Note: Will discuss next posts in detail of each data type