Java修饰符关键字的顺序

Java语言规范建议按以下顺序列出修饰符:

1. Annotations

2. public

3. protected

4. private

5. abstract

6. static

7. final

8. transient

9. volatile

10. synchronized

11. native

12. strictfp

 

参考:

SonarLint

posted @ 2017-11-16 08:07  EasonJim  阅读(3666)  评论(0编辑  收藏  举报