this vs super in Java

mostfunnyvideo β€’
7 Views
In java, super keyword is used to access methods of the parent class while this is used to access methods of the current class. this keyword is a reserved keyword in java i.e, we can't use it as an identifier. It is used to refer current class's instance as well as static members.

Latest Videos

Partner Program Latest Videos Terms of Service About Us Copyright Cookie Privacy Contact