wood burning stoves 2.0*
The moose likes Java in General and the fly likes Need clarification on serialVersionUID variable in java class. Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Java » Java in General
Bookmark "Need clarification on serialVersionUID variable in java class." Watch "Need clarification on serialVersionUID variable in java class." New topic
Author

Need clarification on serialVersionUID variable in java class.

Thennam Pandian
Ranch Hand

Joined: Oct 11, 2005
Posts: 163
Hi,

Have seen the following member in most of the Serializable classes.

private static final long serialVersionUID = 4374092139857L;

What is the use of this member in the serialization process?
What is the advantage of having this member?
Avishkar Nikale
Ranch Hand

Joined: Aug 06, 2010
Posts: 173
This post might help.
http://www.coderanch.com/t/489777/java/java/Java-class-consisting-serialVersionUID

Regards,
Avishkar Nikale
Rob Spoor
Sheriff

Joined: Oct 27, 2005
Posts: 19654
    
  18

Please SearchFirst, especially in our I/O forum. This question has already been asked many times.


SCJP 1.4 - SCJP 6 - SCWCD 5 - OCEEJBD 6
How To Ask Questions How To Answer Questions
Muhammad Khojaye
Ranch Hand

Joined: Apr 12, 2009
Posts: 449

Or you can find this part of Spec that explain this.


http://muhammadkhojaye.blogspot.com/
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
 
subject: Need clarification on serialVersionUID variable in java class.
 
Similar Threads
Regarding Stream Versioning
Incompatible Class?
Using serialVersionUID ...
extending class with serialVersionUID
When to use serialVersionUID