Link to home
Start Free TrialLog in
Avatar of ganeshaneesh
ganeshaneeshFlag for India

asked on

Java serialVersionUID

Hi,
What is serialVersionUID? Why it is required? How it is implemented?
Thanks,
Aneesh.
Avatar of Mick Barry
Mick Barry
Flag of Australia image

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
Avatar of Mick Barry
Mick Barry
Flag of Australia image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
SOLUTION
Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of Ajay-Singh
Ajay-Singh

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.
SOLUTION
Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial