Parameters
- methodName
- The name of the method to invoke.
- target
- The object on which to invoke the method. Must not be
null
. - args
- An array of arguments to pass to the method. If no arguments are needed, pass
null
or an empty array.
Return Value
The value returned by the invoked method, if any. If the method has no return value,
null
is returned.