Here are some summary of some of the complex objects:
L when the parent class inherits the serializable interface, all subclasses can be serialized the L subclass implements the Serializable interface, the parent class does not, the attribute in the parent class cannot be serialized (without error, the data is lost), but the attribute person in the subclass can serialize L if the serialized property is an object, this Object must also implement the Serializable interface, otherwise error l when deserializing, if the property of the object is modified or deleted, the modified part of the property will be lost, but will not error L at deserialization, if Serialversionuid is modified, then deserialization will fail L if a The parent class does not implement the Serializable interface, and if his inner class is not static, the sequence fails even if the serialized interface is implemented. Because a non-static inner class holds a type this variable that points to the parent class, all properties of the serialized class must implement the serialization interface, so setting the inner class to a static class L list or the generic type contained in the map container must also implement the Serializable interface. Otherwise it will be reported java.io.NotSerializableException
Deserialization exception problem