不可以,如果你能得到,那还用private做什么呢?外部都能得到,所以肯定不行。不过protected的应该是可以得到的。

解决方案 »

  1.   

    public Method[] getMethods()
                        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的成员呢?
      

  2.   

    public Method[] getMethods()
                        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的成员呢?
      

  3.   

    Patrick_DK(减减) (  ) 
    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方法