Java Quiz 27: Can an enum extend other classes in Java?
In Java, an enum cannot extend other classes because enum implicitly extends the java.lang.Enum class. However, enum can implement interfaces. This limitation is due to Java’s single inheritance model, which ensures that enum types inherit from a base class specifically designed for them. Want to learn more about Java enum and inheritance rules? Take this quiz to test your knowledge!
Complete Java Quiz (MCQ Questions and Answers) Playlist: • Java Quiz (Top 100 Java MCQ Questions... .
More Java MCQ questions and answers: https://www.javaguides.net/p/java-dai....
#java #quiz #javaquiz #javamcq #codingtips