Check out example codes for "super in java". It will help you in understanding the concepts better.

Code Example 1

/* superclass Person */
class Person 
{ 
    Person(int i) 
    { 
        System.out.println("Person class Constructor"); 
    } 
} 
  
/* subclass Student extending the Person class */
class Student extends Person 
{ 
    Student() 
    { 
        // invoke or call parent class constructor 
        super(); 
  
        System.out.println("Student class Constructor"); 
    } 
} 
  
/* Driver program to test*/
class Test 
{ 
    public static void main(String[] args) 
    { 
        Student s = new Student(); 
    } 
}

Code Example 2

super keyword is the reference variable which is used to refer immediate 
parent class object.
Let’s see an example on super keyword.

class Manager
{
   int salary = 50000;
}
class Employee extends Manager
{
   int salary = 20000;
   void display(int salary)
   {
      // here refers to the parent class instance variable
      System.out.println(super.salary);
   }
   public static void main(String[] args)
   {
      Employee obj = new Employee();
      obj.display(30000);
   }
}

Code Example 3

/* Base class Person */
class Person 
{ 
    void message() 
    { 
        System.out.println("This is person class"); 
    } 
} 
  
/* Subclass Student */
class Student extends Person 
{ 
    void message() 
    { 
        System.out.println("This is student class"); 
    } 
  
    // Note that display() is only in Student class 
    void display() 
    { 
        // will invoke or call current class message() method 
        message(); 
  
        // will invoke or call parent class message() method 
        super.message(); 
    } 
} 
  
/* Driver program to test */
class Test 
{ 
    public static void main(String args[]) 
    { 
        Student s = new Student(); 
  
        // calling display() of Student 
        s.display(); 
    } 
}

Learn ReactJs, React Native from akashmittal.com