class X {
}
public class GetClassDemo01 {
public static void main(String[] args) {
X x = new X();
System.out.println(x.getClass().getName());
Class<?> c1=null;
Class<?> c2=null;
Class<?> c3=null;
try {
c1=Class.forName("Charp17Reflact.X");
} catch (Exception e) {
e.printStackTrace();
}
c2=new X().getClass();
c3=X.class;
System.err.println(c1.getName());
System.err.println(c2.getName());
System.err.println(c3.getName());
}
}