How are this() and super() used with constructors?
Answer Posted / ranganathkini
this() - is used to invoke one constructor from another
constructor.
super() - is used to invoke the super class's constructor
from the subclass's constructor
| Is This Answer Correct ? | 21 Yes | 2 No |
Post New Answer View All Answers
What are the differences between Java 1.0 and Java 2.0?
Difference between doublesummarystatistics, intsummarystatistics and longsummarystatistics ?
What is math floor in java?
What are the advantages of defining packages in java?
Difference between class#getinstance() and new operator ?
Why deletion in linkedlist is fast than arraylist?
what is the difference between a threads start() and run() methods? : Java thread
How do you sort a set in java?
What is the difference between a local variable and an instance variable?
What do you understand by classes in java?
Why java is a platform independent? Explain
What is linkedlist in java?
Is list thread safe in java?
What is a void method java?
What is type safety in java?