Here you can find the source of invoke(Object o, Method method, Object... param)
public static Object invoke(Object o, Method method, Object... param) throws InvocationTargetException, IllegalAccessException
//package com.java2s; //License from project: Open Source License import java.lang.reflect.*; public class Main { public static Object invoke(Object o, Method method, Object... param) throws InvocationTargetException, IllegalAccessException { return method.invoke(o, param); }/*w w w . j a va2 s . c o m*/ }