user image

Pooja Sharma

Job Interview Skills
English
2 years ago

41. What happens to the static fields of a class during serialization?

user image

Abhishek Mishra

2 years ago

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

Recent Doubts

Close [x]