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 main purpose of serialization in java?
what is method reference in java 8?
You're given a Boolean 2D matrix, can you find the number of islands?
Explain the available thread states in a high-level?
How is Object Oriented Programming different from Procedure Oriented Programming?
What is difference overloading and overriding?
Is an array a vector?
Under what conditions is an object’s finalize() method invoked by the garbage collector?
Is class is a data type?
What is difference between fail-fast and fail-safe?
Give an example of use of pointers in java class.
Explain the difference between static and dynamic binding in java?
Explain what is encapsulation?
What is immutable data?
Is constructor inherited?