adplus-dvertising
frame-decoration

Question

How to get the class object of associated class using Reflection?

a.

Class.forName(“className”)

b.

Class.name(“className”)

c.

className.getClass()

d.

className.getClassName()

Answer: (a).Class.forName(“className”)

Engage with the Community - Add Your Comment

Confused About the Answer? Ask for Details Here.

Know the Explanation? Add it Here.

Q. How to get the class object of associated class using Reflection?