This week's book giveaway is in the Clojure forum.
We're giving away four copies of Clojure in Action and have Amit Rathore and Francis Avila on-line!
See this thread for details.
Win a copy of Clojure in Action this week in the Clojure forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

What are factors that causes serialVersionUID changed ....

 
Maneessh saxena
Ranch Hand
Posts: 125
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
hi great Ranchers,

I wanna know that what are the factors that causes serialVersionUID of a class changed. I am really confused about this.

Thanks & Regards
 
Joe Ess
Bartender
Posts: 9214
9
Linux Mac OS X Windows
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
There are no "factors". The serialVersionUID identifies a particular version of a class. Change the class definition and the serialVersionUID changes.
Ensure Proper Version Control For Serialized Objects
 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic