This week's giveaway is in the EJB and other Java EE Technologies forum.
We're giving away four copies of EJB 3 in Action and have Debu Panda, Reza Rahman, Ryan Cuprak, and Michael Remijan on-line!
See this thread for details.
The moose likes Java in General and the fly likes Query about serialVersionUID Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of EJB 3 in Action this week in the EJB and other Java EE Technologies forum!
JavaRanch » Java Forums » Java » Java in General
Bookmark "Query about serialVersionUID" Watch "Query about serialVersionUID" New topic
Author

Query about serialVersionUID

Nikhil Sun
Ranch Hand

Joined: Nov 13, 2005
Posts: 108
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

Joined: Apr 14, 2004
Posts: 10336

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.


JavaRanch FAQ HowToAskQuestionsOnJavaRanch
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Query about serialVersionUID
 
Similar Threads
serializable
ClassNotFoundException
ArrayList problem ...
Serialization - different JVM version ?
java.io.InvalidClassException