There are two other modifiers that can be applied to variable declarations. The transient keyword indicates that a member variable should not be serialized. A serializable entity is one that can be persistently stored (to disk for instance) and recovered. If a variable is declared to be volatile, the compiler will not perform certain synchronization optimizations. These modifiers are not widely used in Java programming. They are briefly discussed here for completeness. |