下面这个程序为什么报错,怎么改?
package execisetest;
class Person{}
public class FanShe {
public static void main(String [] args) throws Exception{
Class c1=Person.class;
Class c2=new Person().getClass();
Class c3=Class.forName("Person");
System.out.println(c1==c2);
System.out.println(c2==c3);
}
}
|
|