[Java] transient modifier java

The transient modifier. A transient modifier applied to a field tells Java that this attribute should be excluded when the object is being serialized . When the object is being deserialized, the field will be initialized with its default value (this will typically be a null value for a reference type, or zero/false if the object is a primitive type).

你可能感兴趣的:([Java] transient modifier java)