反射-通过反射获取无参构造方法并使用
package cn.itcast_02;import java.lang.reflect.Constructor;import cn.itcast_01.Person;/* * 通过反射获取构造方法并使用。 */public class ReflectDemo { public static void main(String[] args) throws Exception