• Static fields and methods are supposed to represent stateless attributes of a class;

    静态方法应该代表一类无国籍属性

    youdao

  • This is unusual because it requires a developer to create an instance of an object just to access non-instance (static) methods and fields!

    这种做法并不常见因为需要开发人员创建用于访问实例(静态)方法字段对象的实例。

    youdao

  • 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.

    支持导入常量这个特性使静态方法字段能够导入这样访问静态成员时就不必使用完全限定

    youdao

  • It would be much better to simply prevent the programmer from referring to generic types in static fields, as is done in the case of static methods and classes.

    静态方法所做那样,只要防止程序员静态字段引用泛型类型情况很多

    youdao

  • Rather, static crosscutting allows you to alter the structure of an object by introducing additional methods, fields, and properties.

    相反允许通过引入附加的方法字段属性修改对象结构

    youdao

  • Without beforefieldinit, the runtime must run the type constructor at a precise time-just before the first access to static or instance fields and methods of the type.

    如果没有beforefieldinit运行库就必须某个精确时间运行类型构造函数,即,恰好在第一访问类型静态实例字段方法之前

    youdao

  • If you wanted to change the code so that you could change the ResourceBundle dynamically, you would need to change the Messages class so that its fields and methods weren't static.

    如果更改代码以便动态地改变ResourceBundle那么需要修改messages使字段方法不是静态的。

    youdao

  • You can also call static methods on classes and access classes' static fields. Observe!

    可以调用静态方法访问类的静态字段

    youdao

  • You can also call static methods on classes and access classes' static fields. Observe!

    可以调用静态方法访问类的静态字段

    youdao

$firstVoiceSent
- 来自原声例句
小调查
请问您想要如何调整此模块?

感谢您的反馈,我们会尽快进行适当修改!
进来说说原因吧 确定
小调查
请问您想要如何调整此模块?

感谢您的反馈,我们会尽快进行适当修改!
进来说说原因吧 确定