Multiple choice technology programming languages

6) Select all the incorrect options:

  1. Since enums are comparable to traditional classes, they may not be arguments in switch statements.

  2. Enums may not extend another class/ enum.

  3. Enums inherit the java.lang.Object class.

  4. Enums may be extended by another Enum.

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

In Java, enums can be used in switch statements, making the first option incorrect. Java enums also implicitly extend java.lang.Enum (not java.lang.Object directly, though Enum inherits Object) and cannot be extended or extend other classes. Thus, options 1 and 4 are incorrect and correctly marked.