Domanda di colloquio di Capgemini

What are the main differences between an abstract class and an interface in Java?

Risposta di colloquio

Anonimo

24 ott 2025

I explained that abstract classes can have both abstract and concrete methods, while interfaces can only have abstract methods (before Java 8). I also mentioned that a class can implement multiple interfaces but only extend one abstract class.