adplus-dvertising
frame-decoration

Question

How private method can be called using reflection?

a.

getDeclaredFields

b.

getDeclaredMethods

c.

getMethods

d.

getFields

Posted under Java Programming

Answer: (b).getDeclaredMethods

Engage with the Community - Add Your Comment

Confused About the Answer? Ask for Details Here.

Know the Explanation? Add it Here.

Q. How private method can be called using reflection?