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 is the difference between actual and formal parameters?
What is class variable java?
How do you get the length of a string in java?
Difference between concurrent hashmap and hashtable and collections
What is the size of int?
What does the “static” keyword mean?
What is ide with example?
Why string objects are immutable in java?
What is files manifesting?
What is the size of int in 64-bit jvm?
Is there any sort function in java?
What 5 doubled?
What is default exception handling in java?
Why do we need variables?
What is the purpose of abstract class?