Super KeyWord in Java - Tutorial

For Consultation : +91 9887575540

Stay Connected :

Super KeyWord in Java

Super:– Super keyword  is used to

  • Call the Super class variable.
  •  Call the super class constructor.
  • Call the super class methods.

1. Call the Super class variable :

Its mandatory to use when derived class variables and base class variables names are same.



2.Call the super class constructor

  •  inside the constructors super keyword must be first statement of the constructor otherwise the compiler raise compilation error.
  • Super class constructor can be called only once in child class constructor or in method.



3.Call the super class methods

Its mandatory to use when derived class methods and base class methods names are same.



Select your currency