Java Serilization

Learn Prg.

Its a process of taking an object and converting into a form so that it can be transported across network or can be persisted in the storage location.
This storage location can be physical file or database.

In this scenario objects are considered as stream of files.

Using serialization, two different can transfer OBJECTS BETWEEN EACH OTHER.

ONLY NETWORK COMPONENTS CAN UNDERSTAND BITS AND BYTES BUT NOT JAVA OBJECTS.

SERIALIZATION IS THE TRANSLATION OF YOUR JAVA OBJECTS VALUES/STATES TO BYTES
AND SEND IT OVER NETWORK OR SAVE IT.

Java provides a mechanism, called object serialization where an object can be represented as a sequence of bytes that
includes the object’s data as well as information about the object’s type and the types of data stored in the object.

After a serialized object has been written into a file, it can be read from the file and de serialized
that is…

View original post 47 mots de plus

Publicités
Par défaut