what are tokens in java???name and explain...no spams please
Answers
Answered by
1
Answer:Tokens are the various Java program elements which are identified by the compiler. A token is the smallest element of a program that is meaningful to the compiler. Tokens supported in Java include keywords, variables, constants, special characters, operations etc.
Explanation:
When you compile a program, the compiler scans the text in your source code and extracts individual tokens. While tokenizing the source file, the compiler recognizes and subsequently removes white spaces (spaces, tabs, newline and form feeds) and the text enclosed within comments.
Similar questions