五分钟源码Java【Serializable接口II】
*
* During deserialization, the fields of non-serializable classes will
* be initialized using the public or protected no-arg constructor of
* the class. A no-arg constructor must be accessible to the subclass
* that is serializable. The fields of serializable subclasses will
* be restored from the stream.
*
译:
在反序列化的过程中,不可序列化类的属性将使用该类的public或proteced的无参构造参数初始化。
一个无参的构造函数,必须能够被可序列化的子类访问。
序列化子类的字段将从流中恢复。
*
* When traversing a graph, an object may be encountered that does not
* support the Serializable interface. In this case the
* NotSerializableException will be thrown and will identify the class
* of the non-serializable object.
*
译:
在遍历图时,可能会遇到不支持Serializable 接口的对象。
在这种情况下,NotSerializableException将被抛出,并将标识不可序列化对象的类。