Sir / Madam
Why cannot Static variables be serialized/deserialized? Please educate me.
posted 6 years ago
Serialization is only for instance variables.
Static variables are like class variables, i.e only one copy would be maintained irrespective of number of instances created.
The value of an instance variable might differ for each instance, but not the static variable!!