What does the `super` keyword refer to in Java?

Java Associate Medium

Java Associate — Medium

What does the `super` keyword refer to in Java?

Key points

  • `super` keyword is used to call the constructor of the parent class.
  • It is used to access overridden methods of the parent class.
  • `super()` must be the first statement in a constructor.
  • It cannot be used in a static method.

Ready to go further?

Related questions