如果要通过反射的方式访问私有方法,需要用到哪个设置?
A.methoD、setAccessible()
B.methoD、 isAccessible()
C.methoD、setAccessible(true)
D.methoD、setAccessible(false)
正确答案是C
如果要通过反射的方式访问私有方法,需要用到哪个设置?
A.methoD、setAccessible()
B.methoD、 isAccessible()
C.methoD、setAccessible(true)
D.methoD、setAccessible(false)
正确答案是C