看下面代码
public class StaticTest {
{
System.out.println("构造块");
}
static {
System.out.println("静态代码块");
}
public StaticTest(int index) {
System.out.println("index" + index);
}
public static void main(String[] args) {
new StaticTest(1);
new StaticTest(2);
}
}