代码如下: public class Demo_extends { public static void main(String[] args) { Son son = new Son(); } } class Father{ static{ System.out.println("Father类被加载。。。。"); } { System.out.println("Father 对象被创建了。。。"); } } class Son extends Father{ static{ System.out.println("Son类被加载。。。。"); } { System.out.println("Son 对象被创建了。。。"); } } 运行的结果为: Father类被加载。。。。 Son类被加载。。。。 Father 对象被创建了。。。 Son 对象被创建了。。。