adplus-dvertising
frame-decoration

Question

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

Posted under Java Programming

Answer: (d).Foo object

Engage with the Community - Add Your Comment

Confused About the Answer? Ask for Details Here.

Know the Explanation? Add it Here.

Q. What does Class.forName(“myreflection.Foo”).getInstance() return?