How are this() and super() used with constructors?
Answer Posted / bhadresh
this() use to invoke only same class constructor.
super() use to invoke super class constructor.
| Is This Answer Correct ? | 0 Yes | 3 No |
Post New Answer View All Answers
Why are functions called methods in java?
What is definition and declaration?
Can a static block throw exception?
Can we use a switch statement with strings?
Explain the difference between intermediate and terminal operations in java8?
Explain the difference between jdk, jre, and jvm?
How do you create a first line indent?
Difference between string, string builder, and string buffer?
What is bool mean?
What does escaping a character mean?
What is the history of java?
explain autoboxing in java?
What is singleton class example?
What is the major difference between linkedlist and arraylist?
Why Set interface contains unique elements, what internally implemented for this so that it contains unique elements?