Can an enum extend another enum in Java?
Correct answer
No, enums cannot extend any class except Enum
Explanation
Java enums cannot extend another enum or any class other than the `java.lang.Enum` they implicitly extend.
Update: Admin added a tag on this question
Topics
By Admin · · 27 views