获取类对象的构造函数
import java.lang.reflect.Constructor; public class Main { /**来 自 N o w J a v a . c o m - 时 代 Java**/ public static void main(String[] argv) { // By obtaining a list of all Constructors object. Class cls = String.class; Constructor[] cons = cls.getDeclaredConstructors(); for (int i = 0; i < cons.length; i++) { Class[] paramTypes = cons[i].getParameterTypes(); //process(cons[i]); } try { Constructor con = java.awt.Point.class.getConstructor(new Class[] { int.class, int.class })