Search code examples
javaserializationobject-serialization

What is object serialization?


What is meant by "object serialization"? Can you please explain it with some examples?


Solution

  • Serialization is the conversion of an object to a series of bytes, so that the object can be easily saved to persistent storage or streamed across a communication link. The byte stream can then be deserialized - converted into a replica of the original object.