employer cover photo
employer logo
employer logo

Tata Consultancy Services

Parte da empresa Tata Group

Essa empresa é sua?

Pergunta de entrevista da empresa Tata Consultancy Services

They asked: "Can you explain the difference between an abstract class and an interface in Java?"

Resposta da entrevista

Sigiloso

18 de jul. de 2025

I explained that an abstract class can have both abstract and non-abstract methods, and it supports default behavior. An interface, on the other hand, is completely abstract (before Java 8) and is used to achieve full abstraction. I also mentioned that Java allows multiple interfaces to be implemented, which helps in resolving the issue of multiple inheritance.