Frage im Vorstellungsgespräch bei DXC Technology

They asked me the difference between an abstract class and an interface in Java.

Antwort im Vorstellungsgespräch

Anonym

25. Feb. 2026

I explained that an abstract class can have both abstract and concrete methods and is used when classes share common functionality, while an interface is used to define a contract and supports multiple inheritance.