Difference between this(), super()?
Answer Posted / selvan
this & super is a keyword.
"this" is used to invoke a constructor of a same class,
its pointing the same class object.
"super" is used to invoke a superclass constructor and
accessing the superclass constructor.
| Is This Answer Correct ? | 25 Yes | 3 No |
Post New Answer View All Answers
What do you mean by access modifier?
How do we access static members in java?
What is the difference between break and continue statements?
Can a class be declared as protected?
What is the console in java?
Explain the difference between call by refrence and call by value?
What does system.gc() and runtime.gc() methods do?
How do you calculate roots in java?
Is array a class in java?
What is protected in java?
How will you initialize an Applet?
Is java 11 paid version?
Can inner class extend any class?
What is the difference between notify and notifyall method?
What is difference between fail-fast and fail-safe?