10.24
这有个代码:
public class ExplorationJDKSource {
/** * @param args */ public static void main(String[] args) { System.out.println(new A()); }
}
class A{}
运行结果是:
A@1c5f743
运行结果分析:
当要输出一个没有任何东西的类的对象的时候,系统会根据源码进行相应的输出;