What is serialization?Serialization is an operation in which an object’s internal state is converted into a stream of bytes. This stream is then written to the disk. This stream can also be sent over a socket. Serialization is a very compact and accurate method. For any object to be serialized .it must be an instance of a class that implements either the Serializable or Externalizable interface.
Uses of serialization: 1. Helps to persist data for future use 2. To exchange data between servlets and applets 3. To store users sessionWhat is serialization?Serialization is the process of converting a set of object instances into a linear stream of bytes so that they can then be sent over a network through a socket and then be stored to a file. What is serialization?It is the process of converting object instance into stream of bytes. This conversion is required when objects have to be sent over network.
|