Multiple choice technology

Which of the following is not keyword or reserved word in Java?

  1. if

  2. then

  3. goto

  4. while

  5. case

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

Java's reserved words are: if, else, while, for, case, goto (reserved but unused), switch, etc. 'then' is NOT a Java keyword - it's used in some other languages but not in Java's syntax. This makes 'then' the correct answer.