Q:
What is the common usage of serialization? What exceptions occur during serialization?
Answer
The object need to be serialized when it’s sent over a network and when it’s state is saved. Exceptions which occur during serialization are:
a. transient fields
b. when the base class is serialized then only base class fields are handled.
c. static fields are ignored because they are not part of any state.
View answer
Workspace
Report Error
Discuss