Multiple choice technology programming languages

Which of these lists contains at least one word that is not a Java keyword?

  1. abstract, default, if, private, this

  2. do, implements, protected, boolean, throw

  3. case, extends, int, short, try

  4. import, break, double, exception, throws

  5. byte, else, instanceof, return, transient

  6. None of the above

Reveal answer Fill a bubble to check yourself
D Correct answer
Explanation

All words in options A, B, C, and E are Java keywords. Option D contains 'exception' which is not a keyword (it's a class name in java.lang). 'import', 'break', 'double', and 'throws' are valid keywords.