Object serialization refers to taking the state of an object and writing it to a stream.
You can use serialization to persistently store your objects in fi les. You can also serialize
an object and send it across the network to another Java program or save it in a database.
Deserialization refers to the process of reading the data from an object stream and
reconstituting the object in memory. Not all objects can be serialized; only objects whose
classes implement the java.io.Serializable interface . Let ’ s take a look at this interface
and what it means to implement it.
You can use serialization to persistently store your objects in fi les. You can also serialize
an object and send it across the network to another Java program or save it in a database.
Deserialization refers to the process of reading the data from an object stream and
reconstituting the object in memory. Not all objects can be serialized; only objects whose
classes implement the java.io.Serializable interface . Let ’ s take a look at this interface
and what it means to implement it.
No comments:
Post a Comment