Search Interview Questions
| 3361 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.
|Java - Interview Questions and Answers|
|Ans. To call the static method |
|Help us improve. Please let us know the company, where you were asked this question :|
|Like Discuss Correct / Improve  this   this keyword   java|
|Why can't we use this in static context ?|
|Can we use "this" within static method ? Why ?|
|In majority of the situations it won't make much sense whether you append this with the instance method call.Can you tell a situation wherein this keyword would make sense in a instance method ?|
|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 ?|