employer cover photo
employer logo
employer logo

Tata Consultancy Services

Fait partie de Tata Group

Employeur impliqué

Question d’entretien chez Tata Consultancy Services

Q: "Can you explain the difference between overloading and overriding in Java?"

Réponse à la question d'entretien

Utilisateur anonyme

16 avr. 2025

I explained that overloading is when multiple methods in a class have the same method name but different parameters, whereas overriding is when a subclass provides a specific implementation for a method that is already defined in its superclass. I provided examples to illustrate the difference.