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.
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