R
Roedy Green
I just woke up with some panicky thoughts about serialisation. Some
people dream about women; I dream about Java.
1. If a class does not have a no-arg constructor, how is it possible
for serialisation to reconstitute the object?
2. IIRC constructor initialisation does not happen but what about
STATIC fields? Do they get initialised? If so, how? Does it call
the <clinit> static-initialiser method directly?
3. how does initialisation set the private fields of an object?
people dream about women; I dream about Java.
1. If a class does not have a no-arg constructor, how is it possible
for serialisation to reconstitute the object?
2. IIRC constructor initialisation does not happen but what about
STATIC fields? Do they get initialised? If so, how? Does it call
the <clinit> static-initialiser method directly?
3. how does initialisation set the private fields of an object?