What is Token? Short note on Token. Discuss about Token

No comments
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.

They are:-

• Reserved Keywords
• Identifiers
• Literals
• Operators
• Separators



No comments :

Post a Comment

Subscribe

Milan Panda
Admin
About Me | Contact
Copyright 2023-2024 © Programming1011 . 🎀 Developed and Design By- Milan Panda. Happy Holi All Of You 🎀