what happens to the static fields of a class


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

There are three exceptions in which serialization does not necessarily read and write to the stream.

These are

1. Serialization ignores static fields, due to not part of any particular state.

2. Base class fields are only hendled if the base class itself is serializable.

3. Transient fields.

 

Request for Solution File

Ask an Expert for Answer!!
JAVA Programming: what happens to the static fields of a class
Reference No:- TGS0310984

Expected delivery within 24 Hours