Serialization is defined as a process of converting an object to stream of bytes. This is used mainly to transport objects.