What Does Classforname8220myreflectionfoo8221getinstance Return #1305
What does Class.forName(“myreflection.Foo”).getInstance() return?
This multiple choice question (MCQ) is related to the book/course gs gs128 Java. It can also be found in gs gs128 Session Management JSP API - Java Reflection API - Quiz No.1.
What does Class.forName(“myreflection.Foo”).getInstance() return?
An array of Foo objects
class object of Foo
Calls the getInstance() method of Foo class
Foo object