当前位置:网站首页>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
}边栏推荐
- Etcd database source code analysis - cluster membership changes log
- How to view the container name in pod
- FTP experiment and overview
- [cloud native] introduction and use of feign of microservices
- 为什么LPDDR不能完全代替DDR?
- Is the transaction in mysql45 isolated or not?
- Debugging sharp weapon! A lightweight log library log.c
- leetcode-aboutString
- Unity Profiler
- The refurbishment and counterfeiting of chips have made people feel numb
猜你喜欢

Etcd database source code analysis - cluster membership changes log

Mysql45 speak in simple terms index

知识沉淀一:架构师是做什么?解决了什么问题

Redis主从复制

Balanced binary tree (AVL)~

Kingbasees SQL language reference manual of Jincang database (8. Function (10))

金仓数据库 KingbaseES SQL 语言参考手册 (8. 函数(十一))

Why can't lpddr completely replace DDR?

Mysql45 talking about infrastructure: how is an SQL query executed?

MBA-day29 算术-绝对值初步认识
随机推荐
102. (cesium chapter) cesium road streamer
Benji Bananas 开启第二季边玩边赚奖励活动,支持使用多张 Benji 通行证!
Mongodb tutorial Chapter 08 comparison operators
金仓数据库 KingbaseES SQL 语言参考手册 (9. 常见DDL子句)
Solve vagrant's error b:48:in `join ': incompatible character encodings: GBK and UTF-8 (encoding:: Compatib
Is it really hopeless to choose electronic engineering and be discouraged?
Day110. Shangyitong: gateway integration, hospital scheduling management: Department list, statistics based on date, scheduling details
A trick to teach you to easily understand Potter's map
1.12 basis of Web Development
柠檬班自动化学习毕竟
Day110.尚医通:Gateway集成、医院排班管理:科室列表、根据日期统计数据、排班详情
“子问题的递归处理”——判断两棵树是不是相同的树——以及 另一颗树的子树
对接微信支付(二)统一下单API
某公司给每个工位装监控:只为看员工写代码?
NFT in the eyes of blackash: the platform is crying for slaughter, and users send money to the door
Embedded general learning route arrangement
QT writing IOT management platform 47 general database settings
二叉树的前中后序遍历——本质(每个节点都是“根”节点)
Project topic selection reference
Rocbossphp free open source light community system