When we serialize objects, static members are not serialized, but if we need to do so, is there any way out?
Static members belong to the class, not to the individual objects.
You should reconsider your data structure.