Frage im Vorstellungsgespräch bei IBM

Q: Explain the difference between an abstract class and an interface in Java.

Antwort im Vorstellungsgespräch

Anonym

17. Nov. 2025

I explained that abstract classes can have both abstract and non-abstract methods, while interfaces contain only abstract methods (before Java 8). I also mentioned that interfaces support multiple inheritance, unlike abstract classes