文章列表
public class A {
static {
System.out.println("A的静态块");
}
public A(){
System.out.println("构造A");
}
}
public class B extends A{
public static B b = new B();
public static int numB = 10;
static {
System.out.println("B的静态块,当前numB="+numB);
}
public B(){
Syste ...