Java Keywords
Questions about reserved words and keywords in the Java programming language
Questions
Question 1 Multiple Choice (Single Answer)
In Java, final keyword gives the same result as ________ declaration in C++.
- throw
- cout
- const
- cin
Question 2 Multiple Choice (Single Answer)
In System.out.println(), the keyword out is the _________.
- class
- object
- method
- vriable
Question 3 Multiple Choice (Single Answer)
Which of the following is/are not keyword(s)?
- Switch
- Integer
- Default
- Boolean
- All of the above
Question 4 Multiple Choice (Single Answer)
Which is a reserved keyword in java?
- Subclass
- Native
- Array
- None of theses
- All of these
Question 5 Multiple Choice (Single Answer)
Which of the following statements is true regarding final keyword in Java?
- A final class can be extended by another class.
- A final method can be overridden when its class is inherited.
- A final variable's value cannot be changed.
- The keywords final and finally have the same meaning in Java.
- Final class can be abstract in Java.
Question 6 Multiple Choice (Single Answer)
Which of the following is not a reserve word in Java?
- Transient
- Implements
- Include
- Instanceof
- All of the above
Question 7 Multiple Choice (Single Answer)
Which of the following is a keyword in Java?
- Delete
- Exit
- Main
- Continue
- Next
Question 8 Multiple Choice (Single Answer)
Which is a reserved word in Java programming language?
- Method
- Native
- Subclasses
- Reference
- Array