Multiple choice technology programming languages

Which of the following are keywords or reserved words in Java?

  1. if

  2. then

  3. goto

  4. case

Reveal answer Fill a bubble to check yourself
A,C,D Correct answer
Explanation

if is a conditional keyword, case is used in switch statements, and goto is a reserved word (though not used in Java). then is not part of Java syntax - Java uses curly braces, not then keywords like Pascal.