A question in the mock exam with k&b says the following is true: "When an object is serialized, if it has references to other objects, those objects must be serializable".
But what about if that object reference is marked as transient?
If the object reference is marked transient then it will not be serialized. When you de-serialize the original object all transient variables will get the default value.
Hello, "When an object is serialized, if it has references to other objects, those objects must be serializable" : Transient object aren't serialized. This affirmation is more about the others object ( non-static and non-transient ). Arno
The man who makes no mistakes does not usually make anything<br /> <br />>>> SCJP 5.0 >> SCJD B&S <<< In progress
If the object are not transient and not implement seriazable interface this statement is true. I assume that they are not talking about transient objects.