super keyword in Java | Java Online Tutorials

This Java Online Tutorials “super keyword in Java” is explains clearly what is ‘super’ keyword in java and how to access Parent class functionality from Child class using ‘super’ keyword in Java.


 

super keyword:

  • It is a keyword
  • It is pre-defined non-static variable.
  • It is used to access the complete functionality of Parent class from Child class.
  • It must be used in non-static context.

 

 

Difference between this and super in Java:

this v/s super in java

 

  • ‘super’ is a sub pointer to ‘this’.
  • ‘this’ holds object address but ‘super’ doesn’t holds.
  • Using ‘super’, we can access only one level object functionality in the hierarchy.

super keyword in java



 

Share this