How to deal with NotSerializableException in Ja
|Top Tutorials||New Tutorials||Submit||Login||Register|
Total Hits: 2841
Total Votes: 139 votes
Category: JAVA/JAVA Misc
Submitted on: 2013-11-21 08:35:22
Submitted By: Javin Paul
Description:java.io.NotSerializableException comes when you try to serialize a class, which contains another object in form of member variable, which is not Serializable. There are two ways to solve this error, either customize serialization process by using Externalizable or just use transient variable to exclude those members during Serialization process. More detail...