Why we need transient keyword to prevent serialization of a particular data member. we can also make it static because static data member can not be serialized.
Please provide me a scenario where I should use writeReplace() method with serialization.