InterviewSolution
Saved Bookmarks
| 1. |
What is not the use of “this” keyword in Java?(a) Passing itself to another method(b) Calling another constructor in constructor chaining(c) Referring to the instance variable when local variable has the same name(d) Passing itself to method of the same classI had been asked this question in examination.This is a very interesting question from Constructor in division Classes and Methods of Java |
|
Answer» Right choice is (d) Passing itself to method of the same class |
|