Java中static修饰一段代码实现加载时运行的用法

2014-11-24 08:57:04 · 作者: · 浏览: 2


输出结果:


static block


加上AA a = new AA();后,输出:


static block
AA()