0%

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