java execute method when a method is called code example
Example: java invoke method reflection
Object obj = /*Your Class instance*/
Method method = /*Your Method init - The method you want to invoke*/;
method.invoke(obj, parameters);
Object obj = /*Your Class instance*/
Method method = /*Your Method init - The method you want to invoke*/;
method.invoke(obj, parameters);