employer cover photo
employer logo
employer logo

Tata Consultancy Services

Fait partie de Tata Group

Employeur impliqué

Question d’entretien chez Tata Consultancy Services

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

Réponse à la question d'entretien

Utilisateur anonyme

5 mars 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.