In Java, the keyword "super" is used to refer to the superclass of a class.
When you create a subclass that inherits from a superclass, the subclass can use the super keyword to access the methods and fields of the superclass".
Some of the most common uses of the "super" keyword in Java are:
Calling the superclasss constructor from the subclass's constructor with the "super()" keyword. This is required to initialize the superclass state before the subclass can initialize its own state.
To access the instance variables and methods of the superclass from the subclass.
To override a method of the superclass in the subclass and call the original implementation of the method with the "super" keyword.
To call a superclass method from the overridden subclass method.
By using the "super" keyword, you can use code that already exists in the superclass and avoid duplicating code in the subclass.