What is the difference between"this" keyword and "super" keyword in Java? | Sololearn: Learn to code for FREE!
Nouvelle formation ! Tous les codeurs devraient apprendre l'IA générative !
Essayez une leçon gratuite
+ 2

What is the difference between"this" keyword and "super" keyword in Java?

27th Sep 2017, 12:31 PM
Suraj Prashar
Suraj Prashar - avatar
2 Réponses
27th Sep 2017, 1:31 PM
Ipang
+ 3
this refers to the current object instance. super refers to the current object instances super class.
27th Sep 2017, 3:32 PM
Rrestoring faith
Rrestoring faith - avatar