Check out example codes for "why static variables cannot be serialized in java". It will help you in understanding the concepts better.

Code Example 1

Static Variable. Static variables belong to a class and not to any individual instance. The concept of serialization is concerned with the object's current state. Only data associated with a specific instance of a class is serialized, therefore static member fields are ignored during serialization.Dec 29, 2013

Learn ReactJs, React Native from