Computer Applications
Which of the following is not a type of token in Java?
| 1. Method | 3. Literal |
| 2. Identifier | 4. Keyword |
- only 1
- 1 and 3
- only 2
- only 4
Related Questions
Which of the following access specifiers will make a member accessible only within its own class?
- public
- private
- protected
- default
What will be the output of the following Java method?
Character.isLetterOrDigit('\n')- 1
- 0
- true
- false
The statement given below is termed as:
public void Accept(int a)- Method signature
- Method block
- Method prototype
- Constructor
What is the output of the following Java code?
boolean flag = false; if (flag) { System.out.println("True"); } else { System.out.println("False"); }- True
- False
- No output
- Compilation error