Javoc
getDeclaredMethods
Returns an array of Field objects that reflect all the fields declared by the class or interface represented by this class object. This includes open, secure, default (batch) access, and private fields, but excludes inherited fields. The elements of the returned array are not sorted and are not in any particular order. This method returns an array of length 0 if the class or interface does not declare any fields, or if this class object represents a primitive type, an array class, or void.
getDeclaredMethods
Returns an array of Field objects that reflect all the fields declared by the class or interface represented by this class object. This includes open, secure, default (batch) access, and private fields, but excludes inherited fields. The elements of the returned array are not sorted and are not in any particular order. This method returns an array of length 0 if the class or interface does not declare any fields, or if this class object represents a primitive type, an array class, or void.
source share