Difference between this(), super()?
Answer Posted / shanthappa
"this" is the implicit keyword/object oriented by the jvm and supplied to every java programs for two purposes.
1) It points to current class object
2) It whenever formal parameters of the class are similar then jvm gets an ambiguity.
"super" is a keyword which will differentiate base class features with derived class features.
The keyword 'super' is placing an important role in three places in java...
1)at variable level
2)at constructor level
3)at method level
| Is This Answer Correct ? | 3 Yes | 0 No |
Post New Answer View All Answers
What is preflight request?
How do you use find and replace?
How can you share data between two thread in Java?
What are the core java topics?
Tell us something about different types of casting?
What is the original name of java?
Why set is used in java?
Explain about main thread in java?
How to provide security in java
Explain thread life cycle in java?
What is unicode with example?
What is parsing a sentence?
What are static variables and functions?
Why main method is called first in java?
What is the unit of plancks constant?