D

Dhruva Jagannath • 660 Points
Invincible

Q. Which of these is NOT true about enums in Java?

  • (A) They can implement interfaces
  • (B) They can extend classes
  • (C) They can have methods
  • (D) They are final by default
  • Correct Answer - Option(B)
  • Views: 33
  • Filed under category Java
  • Hashtags: Java Enums

Explanation by: Dhruva Jagannath

Enums cannot extend classes because they already extend `java.lang.Enum`.

You must be Logged in to update hint/solution

Discusssion

Login to discuss.

Be the first to start discuss.