1
JavaAdvanced#serialization
Static fields belong to the class, not an instance, so they are never serialized. transient fields are explicitly excluded from serialization and get their default value (e.g., null, 0) upon deserialization.
class Account implements Serializable {
String owner;
transient String password; // excluded from serialized bytes
}