Token Java
Token Java
Most statements contain expressions which describe the actions carried out on
data.
1) Reserved keywords
2) Identifiers
3) Literals
4) Operators
5) Separators
Keywords :
Identifies :
They are used for naming classes, methods, variable objects, labels,
packages and interfaces in a program.
1) They can have alphabets, digits & underscore & dollar sign characters.
Literal :
Literals in Java are a sequence of character (digits, letters and other character)
that represent constant values to be stored in variables.
Integer literals
Character literals
String literals
Boolean literals
Operators :
Separators :
Separators are symbols used to indicate where groups of code are divided and
arranged.
Braces { }: