What are the three usages of the super keyword in Java?



  • super variable refers immediate parent class instance.
  • super variable can invoke immediate parent class method.
  • super() acts as immediate parent class constructor and should be the first line in child class constructor.

Advertisements