执行以下代码:
public void Result{
static{
System.out.println("in first static");
}
{
System.out.println("in null mothod");
}
static{
System.out.println("in two static");
}
public Result(){
System.out.println("in Result");
}
public static void main(String[] args){
Result bj = new Result();
}
}
the Console print:
in first static
in two static
in null mothod
in Result