Recommended order of a method's mutiple modifiers
来源:互联网 发布:万网域名转移 编辑:程序博客网 时间:2024/05/19 23:13
The method modifiers consist of the following:
annotations
access modifiers
abstract
static
final: A final method cannot be overridden in a subclass.
synchronized: A synchronized method has additional semantics related to the control of concurrent threads within a program.
native
strict: floating point A method declared strictfp has all floating-point arithmetic evaluated strictly. If a method is declared within a class declared strictfp, then that method is implicitly declared strictfp.
An abstract method cannot be static, final, synchronized, native, or strict. A native method cannot be strict.
When multiple modifiers are applied to the same method declaration, we recommend using the order listed.
Reference: 《The Java Language Programming, the Fourth Edition》
- Recommended order of a method's mutiple modifiers
- Recommended order of a field's mutiple modifiers
- can not access a member of with modifiers "public"
- can not access a member of with modifiers "public"
- Signature of a method
- Some books recommended, and also a simple introduction of myself.
- What’s the behavior when calling an overwritten virtual method in the constructor method of a base class?
- mutiple definition of的问题
- java 问题之一“can not access a member of with modifiers
- Gson解析内部类时报can not access a member of class xxx with modifiers "final"
- xxx can not access a member of class xxxx with modifiers ""
- Java-Struts2:Can not access a member of class with modifiers "public"
- c# time of method's excuate
- Mix of blocking and non-blocking assignments to variable <en> is not a recommended coding practice.
- hdu 3999The order of a Tree
- Hdu 3999 - The order of a Tree
- HDU3999:The order of a Tree
- HDU 3999 The order of a Tree
- Java Thread 线程 操作线程
- DLL部分理解
- 遇到很棘手的问题呀!!!
- visual C++ 6.0开发工具与调试
- PDF阅读器迷你绿色纯净版 3.4
- Recommended order of a method's mutiple modifiers
- arm Linux系统启动之----start_kernel函数
- java关键字Transient 转自:http://blog.csdn.net/flynetcn/archive/2008/03/03/2142020.aspx
- android下对于Cursor的中文拼音排序实现
- CoolFormat 2.5源代码格式化工具使用手册
- SQL: 跟踪SQL语句的执行情况
- time.h ctime
- Oracle 用户 对 表空间 配额(quota ) 说明
- 转贴:使用urlconnection和json发送post请求到服务器