Pregunta de entrevista de HealthEdge Software

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

Respuesta de la entrevista

Anónimo

28 mar 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.