日期:2014-05-20 浏览次数:20745 次
[color=#FF0000]public[/color] class ReflectClass { public static void main(String[] args) throws Exception { Class clazz = Class.forName("cnthing.ReflectClass"); Constructor[] cs = clazz.getConstructors(); System.err.println(cs[0]); } public void method(){ System.err.println("method()"); } }