Cognizant interview question

Can you explain serialization and deserialization?

Interview Answer

Anonymous

Nov 10, 2023

Serialization is a mechanism of converting the state of an object in to a byte stream. Deserializatuon is the reverse process where the byte stream is used to recreate the actual java object in memory.