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
Can we change the scope of the overridden method in the subclass?
What is singleton class in java and how can we make a class singleton?
What is a void in java?
Explain about static nested classes in java?
State differences between C and Java?
Why should I use abstract class?
How do you create a null object?
What is the difference between arraylist and hashset in java?
What is a short in java?
What is a super method?
What is listnode in java?
What is navigable map in java?
Name some classes present in java.util.regex package.
How is it possible for two string objects with identical values not to be equal under the == operator?
What is lambda in java?