The data types are mainly of two categories:
1.premitive date types:
These are predefined by programming language, without this it is impossible to frame programs
There are 8 types of Java primitive data types namely:
a. Int
b. Float
c. Char
d. Boolean
e. Byte
f. Short
g. long
h. Double.
2.Non-Primitive Data types:
These are the datatypes which have instances like objects.
They are primarily
1.classes
2.arrays
3.strings
4.Interfaces.