getDeclaredMethod(String name, Class... parameterTypes) Returns a Method object that reflects the specified declared method of the class or interface represented by this Class object.
getDeclaredMethods() Returns an array of Method objects reflecting all the methods declared by the class or interface represented by this Class object.
getMethod(String name, Class... parameterTypes) Returns a Method object that reflects the specified public member method of the class or interface represented by this Class object.
getMethods() Returns an array containing Method objects reflecting all thepublicmember methods of the class or interface represented by this Classobject, including those declared by the class or interface and those inherited from superclasses and superinterfaces.