Q2. What is meant by token? Name the tokens available in Java.
Ans. Individual words and punctuation marks are called tokens. Every unit that makes a sentence in Java is a token.
The smallest individual unit in a program is known as a Token.
Java has the following types of tokens: