Search Interview Questions | More than 3000 questions in repository. There are more than 900 unanswered questions. Click here and help us by providing the answer. Have a video suggestion. Click Correct / Improve and please let us know. |
|
| ||||
Interview Questions and Answers | ||||
| ||||
Ans. Within instance method of the parent class that has other multiple methods that have been overridden by the derived classes. In such case a simple method call from the common method will always be made to the method definition in the parent class. But If we use this.methodCall , this will be polymorphic and will be made to the respective derived object overriding method. | ||||
Help us improve. Please let us know the company, where you were asked this question : | ||||
Like Discuss Correct / Improve  java   this keyword   java keywords | ||||
Related Questions | ||||
Why can't we use this in static context ? | ||||
Can we use "this" within static method ? Why ? | ||||
Which of the following is not the use of this keyword ? | ||||
Does compiler treats it differently if we don't prefix this to the member element and its implicit as its the only variable available with that name ? | ||||
What is the use of this keyword in javascript ? | ||||