Which of the following is not a type of token in Java?

ICSE Class 10 Computer Applications PYQ · 2025 Improvement · Section A

1(xi)1 Mark · 2025 · Section A · 2025 Improvement

Which of the following is not a type of token in Java?

1. Method3. Literal
2. Identifier4. Keyword
Show SolutionHide Solution↓

only 1

Reason — In Java, the main types of tokens are keywords, identifiers, literals, operators, and separators. A method is not considered a token; it is a block of code that performs a task.

← Previous questionNext question →

Browse the free Computer Applications sample bank