Win a copy of Think Java: How to Think Like a Computer Scientist this week in the Java in General forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Query about serialVersionUID

 
Nikhil Sun
Ranch Hand
Posts: 108
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Just a basic query.When a serialVersionUID is defined in a Java class, is there any convention that is followed to arrive at the number that will be defined as the UID or is any random Long number assigned?
 
Paul Sturrock
Bartender
Posts: 10336
Eclipse IDE Hibernate Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Not that I am aware of. Personally, in the past if my IDE does not generate one for me I just set it to 1L.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic