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 the difference between static binding and dynamic binding?
What are the Main functions of Java?
what methods would you overwrite in java.lang.object class?
What is the different types of functions?
Explain the significance of listiterator.
What is the difference between abstract classes and interfaces?
Is array primitive data type in java?
Can we override a variable in java?
What are variable names?
Which collection does not allow duplicates in java?
Mention some interfaces implemented by linked list in java.
Does java list allow null?
What is purpose of keyword void?
How do you use parseint in java?
What is tcp and udp?