# super Java Keyword

The super keyword refers to the superclass of the class in which the keyword is used.

## Examples

      public class MyClass
      {
         public MyClass(String arg)
         {
            super(arg);
         }

         public String myStringMethod()
         {
            return super.otherStringMethod();
         }

## Remarks

- super as a standalone statement represents a call to a constructor of the superclass.

- super.<methodName>() represents a call to a method of the superclass. This usage is only necessary when calling a method that is overridden in this class in order to specify that the method should be called on the superclass.

Related Topics

None.