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
How do you allocate memory to object?
What is slash r?
What is unicode full form?
what is object slice?
What are the main differences between the java platform and other platforms?
What is an empty string in css?
Why scanner is used in java?
What does the “static” keyword mean?
What is nullpointerexception?
Describe what a thread-local variable is in java?
What is java literals?
What flag up means?
How do you create a bulleted list?
Explain about serializable interface in java?
What is this () in java?