A friendly place for programming greenhorns!
Big Moose Saloon
Register / Login
Win a copy of
Java SE 8 for the Really Impatient
this week in the
Java in General
Query about serialVersionUID
Joined: Nov 13, 2005
Nov 12, 2009 04:52:25
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?
Joined: Apr 14, 2004
Nov 12, 2009 06:22:53
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.
I agree. Here's the link:
subject: Query about serialVersionUID
ArrayList problem ...
Serialization - different JVM version ?
All times are in JavaRanch time: GMT-6 in summer, GMT-7 in winter
| Powered by
Copyright © 1998-2014