<分区>
考虑以下例子。
public class H{
int a;
public H(){
a=5;
}
public H(String x){
this();
}
{a=0;}
public static void main(String []a){
System.out.print(new H("").a);
}
}
O/P 是5 这意味着初始化 block 在this() 之前先执行,但是根据Why do this() and super() have to be the first statement in a constructor?第一条语句应该是 this()。这是怎么发生的..???