What will happen if one of the members in the class doesn't implement Serializable interface?

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


Enter your email address to get our daily JOBS & INTERVIEW FAQ's Straight to your Inbox.

Make sure to activate your subscription by clicking on the activation link sent to your email