[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).
宛如智障,暗藏锋芒
原文地址:https://www.cnblogs.com/zienzir/p/11411326.html