当前位置:网站首页>Modifiers should be declared in the correct order
Modifiers should be declared in the correct order
2022-07-26 05:55:00 【Programmers who can't manage money are not good DJs】

Modifiers should be declared in the correct order , This is due to the reverse order of modifiers .
The Java Language Specification recommends listing modifiers in the following order:
Java Language specifications suggest listing modifiers in the following order :
1. Annotations
2. public
3. protected
4. private
5. abstract
6. static
7. final
8. transient
9. volatile
10. synchronized
11. native
12. default
13. strictfp
Not following this convention has no technical impact, but will reduce the code’s readability because most developers are used to the standard order.
Failure to follow this agreement will not have a technical impact , But it will reduce the readability of the code , Because most developers are used to the standard order .
Noncompliant Code Example Non conformance code example
static public void main(String[] args) { // Noncompliant
}
Compliant Solution Compliance solutions
public static void main(String[] args) { // Compliant
}边栏推荐
- Jdbc流式查询与游标查询
- Mysql45 speak in simple terms index
- How to name the project version number? Looks like cow b
- 中文文本纠错任务简介
- 日志收集分析平台搭建-1-环境准备
- Redis master-slave replication
- [cloud native] record of feign custom configuration of microservices
- Kingbasees SQL language reference manual of Jincang database (9. Common DDL clauses)
- Lemon class automatic learning after all
- [MySQL must know and know] time function number function string function condition judgment
猜你喜欢

Mba-day29 arithmetic - preliminary understanding of absolute value

柠檬班自动化学习毕竟

Using easyexcel to import tables to realize batch insertion of xlsx files ----- MySQL of Linux

Solve vagrant's error b:48:in `join ': incompatible character encodings: GBK and UTF-8 (encoding:: Compatib

Day110.尚医通:Gateway集成、医院排班管理:科室列表、根据日期统计数据、排班详情

1.12 basis of Web Development

金仓数据库 KingbaseES SQL 语言参考手册 (6. 表达式)

Why can't lpddr completely replace DDR?

You'd better not take this kind of project!

Ros2 knowledge: DDS basic knowledge
随机推荐
A company installs monitoring for each station: write code only to see employees?
二叉树的性质 ~
Rocbossphp free open source light community system
You'd better not take this kind of project!
[free and easy to use] holiday query interface
Is it really hopeless to choose electronic engineering and be discouraged?
Is the transaction in mysql45 isolated or not?
Solve vagrant's error b:48:in `join ': incompatible character encodings: GBK and UTF-8 (encoding:: Compatib
逆序打印链表
H. Take the Elevator 贪心
[cloud native] introduction and use of feign of microservices
sdc中对cdc的处理方式
[SQL optimization] (big table tips) sometimes a 2-hour SQL operation may take only 1 minute
CANoe-XML在Test Modules中的应用
vagrant下载速度慢的解决方法
LNMP architecture
金仓数据库 KingbaseES SQL 语言参考手册 (11. SQL语句:ABORT 到 ALTER INDEX)
满二叉树 / 真二叉树 / 完全二叉树 ~
Kingbasees SQL language reference manual of Jincang database (11. SQL statement: abort to alter index)
递归函数中 有两个递归入口的时间复杂度