Java serialVersionUID

Hi,
What is serialVersionUID? Why it is required? How it is implemented?
Thanks,
Aneesh.
ganeshaneeshAsked:
Who is Participating?
 
objectsCommented:
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
 
ksivananthConnect With a Mentor Commented:
thats used mainly to identify or distinguish the class versions!
0
Introducing Cloud Class® training courses

Tech changes fast. You can learn faster. That’s why we’re bringing professional training courses to Experts Exchange. With a subscription, you can access all the Cloud Class® courses to expand your education, prep for certifications, and get top-notch instructions.

 
Ajay-SinghCommented:
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
 
ksivananthCommented:
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.