Is it possible to invoke private attributes or methods via reflection

前端 未结 3 1076
甜味超标
甜味超标 2020-12-24 10:44

I was trying to fetch the value of an static private attribute via reflection, but it fails with an error.

Class class = home.Student.class;
Field field = st         


        
3条回答
提交回复
热议问题