Serialization is the process of converting an object instance with it child objects into a linear stream of bytes. In this way it stores the state of an object into a stream. This stream of bytes can stored into a file, in a database as blob, sent to remote system via sockets etc. The reverse of this process is called Object De-Serialization, which is restoring the object to its state by reading the serialized stream of bytes. Java provides in built implementation to serialize & de-serialize the object via ObjectOutputStream and ObjectInputStream classes.
↧
What is Serialization?
↧