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


Please Help Members By Posting Answers For Below Questions

How do you allocate memory to object?

524


What is slash r?

545


What is unicode full form?

559


what is object slice?

1579


What are the main differences between the java platform and other platforms?

534






What is an empty string in css?

537


Why scanner is used in java?

552


What does the “static” keyword mean?

585


What is nullpointerexception?

562


Describe what a thread-local variable is in java?

575


What is java literals?

585


What flag up means?

607


How do you create a bulleted list?

571


Explain about serializable interface in java?

586


What is this () in java?

583