//关于程序执行的顺序 //例如: //定义一个基类 public class A(){ public A(){ System.out.println("A"); } } //定义一个类继承A类 public class B(){ public B(){ System.out.println("B"); } } public class C{ public C(){ System.out.println("C"); } public static A a = new A(); public B b = new B(); public static void main(String args[]){ go(); } public static void go(){ B b1 = new B(); } }