Salescode.ai Interview Question

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

Interview Answer

Anonymous

Oct 7, 2025

I explained that both are used for abstraction, but an interface defines a contract without implementation, while an abstract class can include both abstract and concrete methods.