Howdy, ranchers!
adam Lui posted
i was expecting a ZERO just like what a transient does
No, serialization is for objects only. The static variables belong to the class - not to individual objects - so (de)serialization simply does not touch them at all.
There is no reason to assign any null (or 0) values to the static variables in the serialization process, because the static variables should only be accessed through the class identifier (e.g.
SpecialSerial.z=42 in your case).
Yours,
Bu.
[ November 09, 2007: Message edited by: Burkhard Hassel ]