Which of the following is not a valid token in Java?
a) Identifier
b) Punctuators
c) Keyword
d) Example
Answers
Answered by
2
Explanation:
Example
Hope it helps you..
Answered by
1
Answer:
(d) Example is not a valid token in Java out of the all options given here.
Explanation:
Since, as we know that smallest individual units of a program is also known as token. In Java there are 6 tokens for our use.
Java token includes the following which are:
- Keywords
- Identifiers
- Literals
- Operators
- Separators (Punctuators)
- Comments
Thus, here Identifier, Punctuators and Keyword are valid tokens in Java. So, option (d) Example is the right option here.
Similar questions
Computer Science,
3 months ago
English,
3 months ago
History,
8 months ago
Science,
8 months ago
English,
1 year ago
Social Sciences,
1 year ago