There are three exceptions in which serialization doesn’t necessarily read and write to the stream. These are
- Serialization ignores static fields, because they are not part of any particular state.
- Base class fields are only handled if the base class itself is serializable.
- Transient fields.
Posted in: