Modifiers Order in Java

Modifiers Order in Java

Modifiers Order

The Java Language Specification recommends listing modifiers in the following order:

  1. Annotations
  2. public/protected/private
  3. abstract
  4. static
  5. final
  6. transient
  7. volatile
  8. synchronized
  9. native
  10. strictfp
Licensed under CC BY-NC-SA 4.0
Last updated on Jun 23, 2020 15:44 UTC