What is the difference between"this" keyword and "super" keyword in Java? | Sololearn: Learn to code for FREE!
¡Nuevo curso! ¡Todo programador debería aprender IA Generativa!
Prueba una lección gratuita
+ 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 Respuestas
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