Before starting with the concept of data types in Java, let’s be aware of the basics:
Java Token :
You must have read in your science classes that the cell is the smallest fundamental and individual unit of human body.
Similarly, every single individual unit of a Java program is called Token.
A Token is to Java what a cell is to human body.
There are various kinds of tokens:
- Constants (Literals)
- Variables (Identifiers)