employer cover photo
employer logo
employer logo

Tata Consultancy Services

Part of Tata Group

Engaged employer

Tata Consultancy Services interview question

Explain the difference between an interface and an abstract class in Java and when you would use each one.

Interview Answer

Anonymous

5 Mar 2026

I explained that an interface defines a contract that a class must implement, while an abstract class can contain both abstract and concrete methods. I also mentioned that a class can implement multiple interfaces but can only extend one abstract class.