Re: Object Serialization Between JDK Versions
Wednesday, December 18, 2013 11:32 PM
Because jvm generated serial version UID
by default we are using these UID means custom UID. so the problem is whenever we are change our code new serial version UID is generate .
you are trying to deserialize your code then jvm is check the UID which is not found so jvm will generate error
Solution. define UID in our code
public static final long serialVersionUID =1l;