Q1
What is the difference between an interface and an abstract class regarding multiple inheritance in Java?
mediumView Answer & ExplanationHide Answer & Explanation
Correct Answer: A class can implement multiple interfaces but can only extend one class, including abstract classes
Explanation:
This is one reason interfaces are often used to achieve behavior that resembles multiple inheritance in Java, since the language deliberately avoids the ambiguity of extending multiple classes.