被声明为static的初始化块,称为静态初始化块或静态初始化器(Static Initializer) 静态初始化块中的语句只能访问类的静态域,并且不能抛出任何异常
基于32个网页-相关网页
静态初始化器
Static initializer
以上为机器翻译结果,长、整句建议使用 人工翻译 。
清单2显示了典型的静态初始化器。
Listing 2 shows a typical static initializer.
youdao
在初始化阶段,类中包含的静态初始化器都被执行。
During the initializing phase, any static initializers contained within a class are executed.
提供描述构造函数的gbeaninfo静态初始化器。
Provide a GBeanInfo static initializer that describes the constructor.
应用推荐
模块上移
模块下移
不移动