What is serialization?

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 session

What 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.

How are Observer and Observable used?
How are Observer and Observable used? - The observer pattern in java is known for its use in design. Whenever an observable object changes its state.......
Difference between a break statement and a continue statement
Difference between a break statement and a continue statement - A break statement when applied to a loop ends the statement. A continue statement ends the iteration of the.......
What are synchronized methods and synchronized statements?
What are synchronized methods and synchronized statements? - Synchronization does not allow invocation of this Synchronized method for the same object until the first...
Post your comment