What is the difference between this() and super()?
Answer Posted / tulasi prasad
this keyword is used to invoke the current class properties.
Where as super keyword is used to invoke the immidiate
super class properites.
| Is This Answer Correct ? | 17 Yes | 2 No |
Post New Answer View All Answers
Why do we use regex?
What is callable java?
What is the difference in between cpp and java? Can u explain in detail?
When does an object becomes eligible for garbage collection in java?
What is the main advantage of passing argument by reference?
Is break statement can be used as labels in java?
How do you remove all elements from an arraylist in java?
What is the common usage of serialization? What exceptions occur during serialization?
How do you implement polymorphism in our day to day life?
What is a singleton factory?
How are destructors defined in java?
What is difference between an object and a class?
Where are register variables stored?
In a class implementing an interface, can we change the value of any variable defined in the interface?
What is considered an anti pattern?