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

Explain the tools used for unit testing in ASP.Net MVC

604


In Server how to check whether model has error or not in ASP.Net MVC

627


What are the 2 popular asp.net mvc view engines?

523


What is entity graph? : Entity framework

532


Explain RenderBody and RenderPage in ASP.Net MVC?

593






What are ajax helpers in asp.net mvc?

593


Can you use Razor code in Javascript in ASP.Net MVC?

665


What are the new features 3.5 framework against with the tool?

547


What is oauth in web api?

526


explain why t4 entity is important in entity framework?

565


Explain the use of Inversion of control (IOC)?

605


What is ado.net data provider? : Entity framework

569


Which approach provides better support for test driven development - asp.net mvc or asp.net webforms?

508


Explain bundle.config in mvc4?

647


Can you explain renderbody and renderpage in asp.net mvc?

559