The keyWord super is used to refer to the parent class instance of the current class.
Lets say we have a class
class A extends B {
...
public void getName(){
}
...
}
Lets assume the parent class B also has a method getName()
Inside class A if you call getName() it would by default call the current class's method. To make the JVM intentionally call the super class method we can use super
if we say super.getName() then the parent class instance of the method would be called.
Copyright © 2026 eLLeNow.com All Rights Reserved.