What is super in java?
1801
28-Mar-2015
Anonymous User
28-Mar-2015The super keyword in java is a reference variable that is used to refer immediate parent class object.
Whenever you create the instance of subclass, an instance of parent class is created implicitly i.e. referred by super reference variable.
Output:Vehicle is created
Bike is created
Output:welcome to java
welcome