1.

How private method can be called using reflection?(a) getDeclaredFields(b) getDeclaredMethods(c) getMethods(d) getFields

Answer» Correct choice is (b) getDeclaredMethods

Easiest explanation: getDeclaredMethods gives instance of java.lang.reflect.Method.


Discussion

No Comment Found

Related InterviewSolutions