Java Lexical Issues or Java Lexeme or Java Tokens

Java Tokens are the smallest individual building block or smallest unit of a Java program; the Java compiler uses it for constructing expressions and statements. Java program is a collection of different types of tokens, comments, and white spaces.


There are various tokens used in Java:

  • Keywords
  • Identifiers
  • Literals
  • Operators
  • Separators

White space is also considered as a token.

java java tutorials learn java study java