Originally posted by Campbell Ritchie: Do you mean "Why is c null after serialization?" Because it is declared transient. Anything "transient" is missed out on serialization, and on de-serialization there is no value. So it is null.
Well, your query had been already answered, but, probably I was in the process of replying.
By the way, please avoid posting questions twice i.e. in multiple threads.