November 06, 2021
Instances of the class Class represent classes and interfaces
in a running Java application. Every array also belongs to a class that is
reflected as a Class object that is shared by all arrays with
the same element type and number of dimensions.
Method[] methods = testClass.getMethods();
//getMethod("메서드", 파라미터);
Method method = testClass.getMethod("testMethod");
Method method = testClass.getMethod("testMethod", null);
Method method = testClass.getMethod("testMethod", String.class);
Method method = testClass.getMethod("testMethod", new Class[]{String.class, Integer.class});