How are this() and super() used with constructors?
Answer Posted / sunil kishore balla
super() is used to invoke a super class constructor and
this() is used to invoke a constructor of the same class
| Is This Answer Correct ? | 11 Yes | 2 No |
Post New Answer View All Answers
Mention some interfaces implemented by linked list in java.
What are java annotations?
Compare java and python.
What is public static?
Is string passed by reference in java?
What is the difference between heap memory and stack memory?
How does class forname work in java?
How do you calculate roots in java?
Explain the use of volatile field modifier?
How does compareto work in java?
Can we use switch statement with strings?
How listener identify that the event came from a particular object?
Why string is immutable or final in java
Why does my function print none?
What is dynamic array in java?