Question: Explain the difference between an interface and an abstract class.Answer: An interface in Java is a collection of abstract methods, while an abstract class can have both abstract and concrete methods. A class can implement multiple interfaces but can extend only one abstract class. |
Is it helpful?
Yes
No
Most helpful rated by users: