不可以,如果你能得到,那还用private做什么呢?外部都能得到,所以肯定不行。不过protected的应该是可以得到的。
解决方案 »
- java swing 中容器大小的问题
- 一个类新加载覆盖原始加载的类的问题
- java如何获得网络的剩余带宽呀?
- jni技术高手:java调用c++写的des加密dll程序,知道如何实现吗?
- 请问怎样开发自己的jar包,就像rt.jar那样,也可以 import java.math.*;
- 高手帮忙--数据库连接问题--急急急
- 如何找到SWT API Documentation !!!
- 高分求教:多国时区转换的java方法!300分,不封顶!!
- 那位大哥哥有将rational rose 2001与jbulider 6.0配合使用的经验啊?
- 如何把int变成4个byte,然后又能把这4个byte变回一个int??? 求救!!!
- 请问JDK版本号后面的参数的意义????
- 拿高分!拿高分!用java.util.zip压缩中文文件乱码了,怎么办?
throws SecurityException
Returns an array containing Method objects reflecting all the public member methods of the class or interface represented by this Class object, including those declared by the class or interface and and those inherited from superclasses and superinterfaces.to 小小:如何得到protected和default的成员呢?
throws SecurityException
Returns an array containing Method objects reflecting all the public member methods of the class or interface represented by this Class object, including those declared by the class or interface and and those inherited from superclasses and superinterfaces.如何得到protected和pacakge的成员呢?
u r right,
there is no way 2 get a protected method.Returns an array containing Method objects reflecting all the public member methods就是返回所有的PUBLIC方法