ganeshaneesh
asked on
Java serialVersionUID
Hi,
What is serialVersionUID? Why it is required? How it is implemented?
Thanks,
Aneesh.
What is serialVersionUID? Why it is required? How it is implemented?
Thanks,
Aneesh.
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
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
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.
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.
SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
a good explanation here http://www.javaworld.com/javaworld/javaqa/2003-06/02-qa-0627-mythser.html