序列化时 static 域的处理?
2018-07-03 15:51 更新
There are three exceptions in which serialization doesnot necessarily read and write to the stream. These are
- Serialization ignores static fields, because they are not part of auy particular state state.
- Base class fields are only hendled if the base class itself is serializable.
- Transient fields.
以上内容是否对您有帮助:
更多建议: