Methode methode = Class.forName("com.Gary.Demo”).getDeclaredMethod("methodName");
getDeclaredMethode( String name, Class<?>... parameterTypes
);
Method | getDeclaredMethod(String name, Class<?>... parameterTypes) Returns a |
methode.invoke("Object obj");
Object | invoke(Object obj, Object... args) Invokes the underlying method represented by this |