Serialization and deserialization is just a way of writing and reading an object. You can always write your own methods that write and read all object data to / from a line / file / stream.
In addition, custom serialization methods, especially those using binary data, often have less time, memory, and processing power than is provided, for example, Serializable.
Dariusz
source share