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
Can we clone singleton object?
What is the purpose of nested class in java?
How will you calculate the depth of a binary tree if the tree contains 15 nodes?
Can an interface have a constructor?
What is final?
What is the difference between C++ and Java and your preferences?
Is sizeof a keyword in java programming?
What does microservices mean?
What is the difference between Java1.4 and Java1.5
Explain the transient field modifier?
Which graphs are functions?
Why array is used in java?
What is the difference between preemptive scheduling and time slicing?
What is illegal identifier in java?
How to print nodes of a Binary tree?