Home »
MCQs »
Java MCQs
The super() method is used to ___
33. The super() method is used to ___.
- Call constructor of friend class
- Is a declared method
- Call constructor of the parent class
- Call constructor
Answer: C) Call constructor of the parent class
Explanation:
In Java programming language, the super() is a reference variable that is used to refer parent class constructors. The super can be used to call parent class's variables and methods. The super() can be used to call parent class' constructors only.