What does super()represent, and how is it used in Java?

Answer Posted / glibwaresoftsolutions

• super() denotes a parent or base class's current instance.
• Used to: o Call the parent/base class's default constructor
Access the base class's methods
The superclass instance is indicated.

Is This Answer Correct ?    0 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

how do I create a runnable with inheritance? : Java thread

729


What is a class reference?

750


What is a double vs float?

725


Can an interface implement another interface?

758


What is string and its types?

829


Explain when we should make an instance variable private.

799


How can constructor chaining be done using this keyword?

913


Write a program to find the whether a number is an Armstrong number or not?

761


What is connection class in java?

707


What is the difference between variable declaration and variable initialization?

723


Is 9 a prime number?

636


When will we use them?

786


What is a top level class in java?

720


What is annotation in java?

760


What is difference between iterator and enumeration in java?

719