From K&B:
Serialization Is Not for Statics
And what
happens if you deserialize three different Dog instances, all of which were serialized
at different times, and all of which were saved when the value of a static variable
in class Dog was different. Which instance would "win"? Which instance's static
value would be used to replace the one currently in the one and only Dog class that's
currently loaded? See the problem?
I see the problem but what would be the answer? Ok statics are not serialized but what value do they take when an object is deserialized and needs to have these vars too?
Maybe i'm burned out from studying but do i miss the answer?