标签:getc 步骤 com targe ... 图解 sys declare param
在我们加载类的过程中经过了这些步骤
ClassLoader classLoader = ClassLoader.getSystemClassLoader();
Class targetClass = classLoader.loadClass(className);
如果我们接着创建新实例,并调用实例方法
Object object = targetClass.newInstance();
Method method = targetClass.getDeclaredMethod("name", (Class<?>...)parameterTypes);
method.invoke(object, (Object...)args);
标签:getc 步骤 com targe ... 图解 sys declare param
原文地址:https://www.cnblogs.com/zzzz76/p/9282981.html