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

Answer Posted / nashiinformaticssolutions

• 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

Are true and false keywords?

781


Explain the importance of finalize() method.

742


Explain aggregation in java?

723


What are passing parameters?

771


What is a boolean in java?

755


Which types of exceptions are caught at compile time?

762


What are internal and external variables?

717


What is the difference between post and put?

751


How strings are created in java?

787


Why is java called java?

773


What is the difference between object oriented programming language and object based programming language?

749


Can we pass null as argument in java?

685


how we can make a read-only class in java?

739


What is serialization in java?

773


What is set and get methods in java?

730