?
Solved

Java serialVersionUID

Posted on 2009-02-18
6
Medium Priority
?
798 Views
Last Modified: 2013-12-29
Hi,
What is serialVersionUID? Why it is required? How it is implemented?
Thanks,
Aneesh.
0
Comment
Question by:ganeshaneesh
  • 2
  • 2
  • 2
6 Comments
 
LVL 92

Expert Comment

by:objects
ID: 23668148
so that when the internals of a class change the vm knows whether it can serialize/deserialize an object based on the version of the class it has

0
 
LVL 92

Accepted Solution

by:
objects earned 400 total points
ID: 23668151
0
 
LVL 26

Assisted Solution

by:ksivananth
ksivananth earned 400 total points
ID: 23668155
thats used mainly to identify or distinguish the class versions!
0
What does it mean to be "Always On"?

Is your cloud always on? With an Always On cloud you won't have to worry about downtime for maintenance or software application code updates, ensuring that your bottom line isn't affected.

 
LVL 23

Expert Comment

by:Ajay-Singh
ID: 23668163
serialization is given to a class to uniquely identify it during
serialization and deserialization. It is required so that the class will
be compatible with different version of jvm. You can set a random number
as serailVersionUID.
0
 
LVL 23

Assisted Solution

by:Ajay-Singh
Ajay-Singh earned 400 total points
ID: 23668175
0
 
LVL 26

Expert Comment

by:ksivananth
ID: 23668189
0

Featured Post

Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

After being asked a question last year, I went into one of my moods where I did some research and code just for the fun and learning of it all.  Subsequently, from this journey, I put together this article on "Range Searching Using Visual Basic.NET …
In this post we will learn how to make Android Gesture Tutorial and give different functionality whenever a user Touch or Scroll android screen.
Viewers learn how to read error messages and identify possible mistakes that could cause hours of frustration. Coding is as much about debugging your code as it is about writing it. Define Error Message: Line Numbers: Type of Error: Break Down…
This tutorial will introduce the viewer to VisualVM for the Java platform application. This video explains an example program and covers the Overview, Monitor, and Heap Dump tabs.
Suggested Courses
Course of the Month16 days, 7 hours left to enroll

850 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question