[oracle interview]What happens to the static fields of a class during serialization?
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]