1
0

The smallest indivisible units of the Java Program are called tokens. The token has a specific meaning and purpose in the program. In fact, a Java program is made up of tokens. These are different types of tokens in Java:

  • Keywords
  • Identifiers
  • Constants
  • Operators
  • Separators

Example:

The statement “public static void main(String args[])”consists of the following tokens

  1. public
  2. static
  3. void
  4. main
  5. (
  6. String
  7. args
  8. [
  9. ]
  10. )

Leave a Reply