Sollicitatievraag bij Capgemini

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

Antwoord op sollicitatievraag

Anoniem

9 mei 2025

I explained that an abstract class can have both implemented and abstract methods and support constructors, whereas an interface is a contract with abstract methods (Java 8+ allows default methods) and supports multiple inheritance.