Question: What does Class.forName(?myreflection.Foo?).getInstance() return?

Options

A : An array of Foo objects

B : class object of Foo

C : Calls the getInstance() method of Foo class

D : Foo object

Click to view Correct Answer

Previous || Next

Reflection API more questions

Which tag is used to set a value of a....

Can servlet class declare constructor with ServletConfig object as an....

How constructor can be used for a servlet?

How method can be invoked on unknown object?

How to get the class object of associated class using....

What does foo.getClass().getMethod(?doSomething?, null) return?

What is the difference between servlets and applets?^ i. Servlets....

What is used to get class name in reflection?

Which method is used to get three-letter abbreviation for locale's....

Which of the following code is used to get an....

Annotations more Online Exam Quiz

Design Patterns

Java Beans

JDBC

JSP

JSP Elements

Servlet

Session Management

Web application

Abrasive Jet Machining - Introduction and Machining system

Abrasive Water Jet Machining - Introduction