A

Admin • 830.13K Points
Coach

Q. Can an enum extend another enum in Java?

  • (A) Yes, if the base enum is abstract
  • (B) Yes, using inheritance
  • (C) No, enums cannot extend any class except Enum
  • (D) Yes, with final keyword
  • Correct Answer - Option(C)
  • Views: 10
  • Filed under category Java
  • Hashtags: Java Enums

Explanation by: Admin
Java enums cannot extend another enum or any class other than the `java.lang.Enum` they implicitly extend.

You must be Logged in to update hint/solution

Discusssion

Login to discuss.

Be the first to start discuss.