KnowledgeBoat Logo

Computer Applications

Distinguish between Token and Identifier.

Values & Data Types Java

68 Likes

Answer

TokenIdentifier
Each individual component of a programming statement is referred to as a token.Identifiers are fundamental building blocks of the program and are used to name different components of a program such as variables, methods and objects.
Tokens in Java are categorised into 5 types — Keywords, Identifiers, Literals, Punctuators, Operators.Identifier is a type of token in Java.

Answered By

38 Likes


Related Questions