Computer Science, asked by raju5968, 1 year ago

what is the difference between token and identifier

Answers

Answered by crossword78
39
HEYA MATE ❤️



HERE IS YOUR ANSWER===>>>>>




In a Java program, all characters are grouped into symbols called tokens. Larger language features are built from the first five categories of tokens (the sixth kind of token is recognized, but is then discarded by the Java compiler from further processing). 

The first category of token is an Identifier. Identifiers are used by programmers to name things in Java: things such as variables, methods, fields, classes, interfaces, exceptions, packages, etc.




HOPE YOU LIKE IT
Answered by AA69
26
Hey buddy here is ur answer .......




1. Identifier is also known as variables. These are the named memory location which are use to store values.
eg:- int a=9;
here 'a' is the variable or the identifier.


2.Token is the fundamental unit of java programming.It can be variables, operators, separators, constants etc


3. keyword are also known as reserved words which are preserved with the system. These can't be used as variables.
eg:- int a=9;
here 'int' is the keyword.




hope u like answer.....

crossword78: yes
AA69: kya yes
crossword78: hn kuch kam
AA69: nai
crossword78: phr thnks kis liye
AA69: konsa thanks ????
Similar questions