This week's book giveaway is in the OCAJP forum. We're giving away four copies of OCA Java SE 8 Programmer I Study Guide 1Z0-808 and have Jeanne Boyarsky & Scott Selikoff on-line! See this thread for details.
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.