What is super keyword in Java with example?

  1. super is used to refer immediate parent class instance variable. We can use super keyword to access the data member or field of parent class. It is used if parent class and child class have same fields. In the above example, Animal and Dog both classes have a common property color.

For More Information Please Refer: https://www.javatpoint.com/super-keyword