王浩 发表于 2013-8-16 15:47:38

[oracle interview]What happens to the static fields of a class during serialization?

于郑生 发表于 2013-8-16 15:53:41

There arethree exceptions in which serialization doesnot necessarily read and write tothe stream. These are1. Serialization ignores static fields, because they arenot part of ay particular state state.2. Base class fields are only hendledif the base class itself is serializable.3. Transient fields.
页: [1]
查看完整版本: [oracle interview]What happens to the static fields of a class during serialization?