What is Token? Short note on Token. Discuss about Token
Token:-
A Java program is basically a collection of classes. A class is defined by a set of declaration statements and methods containing executable statements (see Fig. 3.3). Most statements contain expressions, which describe the actions carried out on data. Smallest individual units in a program are known as tokens.The compiler recognizes them for building up expressions and statements.
In simple terms, a Java program is a collection of tokens, comments and white spaces. Java language includes five types of tokens.
In simple terms, a Java program is a collection of tokens, comments and white spaces. Java language includes five types of tokens.
They are:-
• Reserved Keywords
• Identifiers
• Literals
• Operators
• Separators
• Literals
• Operators
• Separators
Subscribe to:
Post Comments
(
Atom
)
No comments :
Post a Comment