InterviewSolution
Saved Bookmarks
| 1. |
What does Class.forName(“myreflection.Foo”).getInstance() return?(a) An array of Foo objects(b) class object of Foo(c) Calls the getInstance() method of Foo class(d) Foo object |
|
Answer» Correct option is (d) Foo object To explain: Class.forName(“myreflection.Foo”) returns the class object of Foo and getInstance() would return a new object. |
|