public final class Method
extends AccessibleObject
implements GenericDeclaration, Member
public Object invoke(Object obj,
            Object... args)
              throws IllegalAccessException,
                     IllegalArgumentException,
                     InvocationTargetException

Invokes the underlying method represented by this Method object, on the specified object with the specified parameters. Individual parameters are automatically unwrapped to match primitive formal parameters, and both primitive and reference parameters are subject to method invocation conversions as necessary.

Parameter

obj - the object the underlying method is invoked from
args - the arguments used for the method call

Returns:

the result of dispatching the method represented by this object on obj with parameters args