What is serialization ?

Answer Posted / javamasque

The process of converting object into byte stream is called serialization.
Advantages
1. It persists the state of an object in local disk or DB or can be transferred in network.
2. The serialized stream can be encrypted, authenticated or compressed.
3. It is used to store to some frequent used remote / third party objects as server local cache in case of web application.
4. RMI, EJB and JAXB are rely on serialization

Disadvantages
1. Large objects are not recommended to serialize.
2. Transient or static variables are not serialized.
3. If serialized object can’t be modified easily as it might impact client implementation.
4. It breaks singleton pattern (more than one object created) and encapsulation (violets access modifier rules).

Is This Answer Correct ?    0 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is filters in web api?

509


When using aspx view engine, to have a consistent look and feel, across all pages of the application, we can make use of asp.net master pages. What is asp.net master pages equivalent, when using razor views?

552


Explain something about model, view and controllers in asp.net mvc?

558


What is difference between Viewbag and Viewdata in ASP.NET MVC?

565


How route table is created in ASP.NET MVC?

593






How to bind table colum with gridview column?

609


Explain representational state transfer (rest) in detail?

547


what is code first approach?

584


Is the following route definition a valid route definition? {controller}{action}/{id}

751


Explain tempdata in mvc?

565


Is it possible to combine asp.net webforms and asp.mvc and develop a single web application?

541


What is ado.net data provider? : Entity framework

565


i just want to write an exam regarding .net?plz give me information about taking a test?where to pay 4 d exam,exam centre?

1808


What is code first? : Entity framework

571


Explain the role of assembly in the .net framework.

564