The Class classes getDeclaredMethods() returns all methods of this class including private methods but does not return inherited methods.