Skip to content
Sharp

Modern Java · interview question

Which of the following is true about Java enums?

Multiple choiceEasychapter-7-curatedpremiummodern-javaenums
Choose one answer
Answer and explanation

Correct answer

B. They can implement interfaces

Why

Enums in Java can implement interfaces, allowing them to participate in polymorphic behavior. However, they cannot extend other classes as they implicitly extend java.lang.Enum.

Test yourself on Modern Java

A free test with instant, explained results. No account needed.

Start free test
All Modern Java questions →