Win a copy of Design for the Mind this week in the Design forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Need clarification on serialVersionUID variable in java class.

 
Thennam Pandian
Ranch Hand
Posts: 163
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 173
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
This post might help.
http://www.coderanch.com/t/489777/java/java/Java-class-consisting-serialVersionUID
 
Rob Spoor
Sheriff
Pie
Posts: 20511
54
Chrome Eclipse IDE Java Windows
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Please SearchFirst, especially in our I/O forum. This question has already been asked many times.
 
Muhammad Khojaye
Ranch Hand
Posts: 449
IntelliJ IDE Java Scala
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Or you can find this part of Spec that explain this.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic