![]() If the receiver has loaded a class for the object that has a different serialVersionUID than that of the corresponding sender’s class, then deserialization will result in an InvalidClassException. This number called serialVersionUID, which is used during deserialization to verify that the sender and receiver of a serialized object have loaded classes for that object that are compatible with respect to serialization. Deserialization is the reverse process – converting a stream of bytes into an object in memory.ĭuring serialization, java runtime associates a version number with each serializable class. ![]() ![]() Java serialization is the process of converting an object into a stream of bytes so we can do stuff like store it on disk or send it over the network.
0 Comments
Leave a Reply. |