static final 还是 final static

The Java Language Specification recommends 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. strictfp

例如:public static final

 

posted @ 2022-02-24 13:17  wolfy  阅读(138)  评论(0编辑  收藏  举报