Question d’entretien chez HealthEdge Software

What is the difference between an abstract class and an interface in Java?

Réponse à la question d'entretien

Utilisateur anonyme

28 mars 2025

I explained that both are used for abstraction, but an interface is purely abstract and allows multiple inheritance, whereas an abstract class can have both abstract and concrete methods and supports single inheritance. I also highlighted the use-case scenarios for each in real-world applications.