adplus-dvertising
frame-decoration

Question

What is used to get class name in reflection?

a.

getClass().getName()

b.

getClass().getFields()

c.

getClass().getDeclaredFields()

d.

new getClass()

Answer: (a).getClass().getName()

Engage with the Community - Add Your Comment

Confused About the Answer? Ask for Details Here.

Know the Explanation? Add it Here.

Q. What is used to get class name in reflection?