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 difference between static variable and global variable?
What are the different ways of creating thread?
What is the difference between overriding and overloading in OOPS.
What is immutable in java?
How do you compare arrays in java?
What is rule of accessibility in java?
Is string is a data type in java?
What is an array length?
What is indexof in java?
Can abstract class have private constructor?
What is replaceall in java?
How many bytes is 255 characters?
What does the string method compareto () do?
Is 0 true or false?
What is computer compiler?