支持导入常量:这个特性使静态方法和字段能够被导入,这样在访问静态成员时就不必使用完全限定的类名。
Support for importing constants: This facility allows static methods and fields to be imported, avoiding the need to use fully qualified class names when accessing static members.
常量—终态静态字段和临时终态本地变量—全部适用大写字母,并以下划线分隔各词,如MAX_CONNECTIONS。
Constants - final static fields and occasionally final local variables - are written in all uppercase with underscores separating the words, as in MAX_CONNECTIONS.
以前讲过,常量池中对类型、字段和方法的引用在开始时都是符号。
As mentioned earlier, references to types, fields, and methods in the constant pool are initially symbolic.
添加定义模块的方法、属性、字段、事件、构造函数(方法)和常量。
Add the methods, properties, fields, events, constructors (method), and constants that define the module.
添加定义模块的方法、属性、字段、事件、构造函数(方法)和常量。
Add the methods, properties, fields, events, constructors (method), and constants that define the module.
应用推荐