Java Foundations — Question 16
Identify two Java reserved words.
Answer options
- A. array
- B. true
- C. this
- D. exception
- E. string
Correct answer: B, C
Explanation
In Java, 'true' and 'this' are reserved keywords. 'true' is a boolean literal, while 'this' refers to the current object in a class. The other options, such as 'array', 'exception', and 'string', are not reserved words in Java.