Java syntax: Difference between revisions

Content deleted Content added
m Modifiers: replaced: which ever → whichever using AWB
Line 1,142:
=====Modifiers=====
* '''<code>static</code>''' - Makes the field a static member.
* '''<code>final</code>''' - Allows the field to be initialized only once in a constructor or inside initialization block or during its declaration, which everwhichever is earlier.
* '''<code>transient</code>''' - Indicates that this field will not be stored during [[serialization]].
* '''<code>volatile</code>''' - If a field is declared <code>volatile</code>, it is ensured that all threads see a consistent value for the variable.