Tokens are the building blocks of a language. The smallest units are known as tokens such as keywords, identifiers, constants, strings and operators.
int a=10;
int
is a keyword
.
a
is an identifier
.
=
is an operator
.
10
is literals
.
;
is separators
.