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

how do you truncate a table using entity data model?

590


How route table has been created in ASP.NET ASP.Net MVC?

557


What are action filters?

606


What is MVVM design pattern?

603


What is the use of web api ? Why web api needed, if you have already restful services using wcf ?

551






What is disconnected scenario? : Entity framework

538


How to return the JSON from action method in ASP.Net MVC?

697


What is entity graph? : Entity framework

536


What are the components required to create a route in ASP.Net MVC?

593


What is the difference between viewbag and viewdata in mvc?

540


The order of the filters that get executed, if the multiple filters are implemented?

617


What is html.renderpartial?

569


Describe the roles of clr in .net framework.?

643


what is lazy loading in entity framework?

596


What is entity framework? : Entity framework

566