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
How to convert string to char and vice versa?
Explain the importance of throws keyword in java?
What are actual parameters?
What is Java Annotations?
What is a class instance variable?
Write a program in java to find the maximum and minimum value node from a circular linked list.
Explain when noclassdeffounderror will be raised ?
How many bytes is double?
Can we return null in java?
What is static keyword?
Why do we create public static method in java?
What is jar?
Why do we use string?
What does substring mean?
Can I uninstall java?