Question d’entretien chez Randstad

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

Réponse à la question d'entretien

Utilisateur anonyme

14 oct. 2025

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