java知识点

Java知识点

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
public class {
public static B b1 = new B();
public static B b2 = new B();
{
System.out.print("构造块");
}
static {
System.out.print("静态块");
}
public static void main(String[] args) {
B b = new B();
}
}
//输出结果:构造块构造块静态块构造块