D

Dhruva Jagannath • 660 Points
Invincible

Q. Can an enum be abstract?

  • (A) Yes, if it has abstract methods
  • (B) No, enums cannot be abstract
  • (C) Only in Java 15+
  • (D) Only if declared inside an interface

Explanation by: Dhruva Jagannath
Enums can have abstract methods, and each constant must override them.

You must be Logged in to update hint/solution

Discusssion

Login to discuss.

Be the first to start discuss.