| Author |
Transient and Static
|
Ashok Srinivasan
Greenhorn
Joined: Jun 24, 2004
Posts: 15
|
|
While Serializing the object, we cannot able to serialize the static and transient data member. what is the use of transient data member in this case,while both static and transient data members are non-serializable one. I want clear picture from all.
|
 |
Gaurav Saxena
Greenhorn
Joined: May 28, 2002
Posts: 29
|
|
Hi Ashok This is what the definition of transient says - "Transient instance fields are neither saved nor restored by the standard serialisation mechanism". So if at all u want some field to be serialized dont make it as transient/static in the first place. Hope it clears ur doubt Gaurav
|
Gaurav Saxena<br />Programmer Analyst<br />Portland, Oregon
|
 |
 |
|
|
subject: Transient and Static
|
|
|