Java Quiz 10: What is the purpose of the super keyword in Java?
In Java, the super keyword is used to refer to the parent (superclass) of the current object. It serves several purposes:
It calls the superclass constructor from a subclass.
It accesses methods and variables of the superclass that have been overridden or hidden by the subclass.
The super keyword helps in achieving code reuse and maintaining clear class hierarchies. Want to test your knowledge of inheritance and the super keyword? Take this quiz and strengthen your Java concepts!
Complete Java Quiz (MCQ Questions and Answers) Playlist: • Java Quiz (Top 100 Java MCQ Questions... .
More Java MCQ questions and answers: https://www.javaguides.net/p/java-dai....
#java #quiz #javaquiz #javamcq #javapractice #javatest #codingtips