Monday 10 December 2018

// // Leave a Comment

Serialization :1 min study

Serialization

•Its concept provided by Java Prog. Lang. to persist the data into file.
•Serialization means change the status of an objects in bit or byte.
•While Serialization use public static final serialVersionUID to match the exact sender or receiver.

Advantages

•Serialization make an object serializable it will transfer through network.
•Using FileInputStream and FileOutputStream as well as ObjectInputStream and     ObjectOutputStream we make an object serializable.
•It contains bits or bytes of information.
•No need to verification while accessing the data.
•Data will be in high security mode while transmission.
•Serializable is the marker interface in Java. It doesn’t contains any methods.
•Static and final keywords are not usable in serialization.
•Transient keyword used to hide the data while serialization.
•We can perform operation on the serialized data.

 Disadvantages

•Serialization only used in Java it is not universal.
•We can stored multiple object using collection but it is complex to read and write.
•It is used by only programmer.
•It may fail while transmission the data from different platform.

0 comments:

Post a Comment