Recommended order of a field's mutiple modifiers

 

Field declarations can also be preceded by modifiers that control certain properties of the field:

 

annotations 

 

access modifiers 

 

static 

 

final 

 

transient 

 

volatile 

 

A field cannot be both final and volatile.

 

When multiple modifiers are applied to the same field declaration, we recommend using the order listed above.

 

 

Reference: The Java Programming Language, Fourth Edition

你可能感兴趣的:(properties,java)