This discussion is archived
4 Replies Latest reply: Apr 8, 2013 3:54 AM by Murray9654 RSS

Doubt on static long serialversion uid?

Murray9654 Newbie
Currently Being Moderated
Hi in serializable classes we are declaring the serialversion as "private static long" field. but when the object is serialized the static values are not serialized so at the other end when we are deserializing how does the jvm checks whether the serialvesrsion when serialized is the same as serialvesrsion in the class when it is being deserialized?


  • Correct Answers - 10 points
  • Helpful Answers - 5 points