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 minimum requirement for entity framework applications to run?

581


What is entitytype? : Entity framework

539


What is an asynchronous controller in asp.net mvc?

555


What is RouteConfig.cs in ASP.Net MVC 4?

590


What are Scaffold templates in ASP.Net MVC?

589






What is action methods in web api?

539


Is .net core replacing .net framework?

481


differences between poco, model first and data first approach?

604


What is ViewData and TempData in ASP.Net MVC?

587


Can you explain renderbody and renderpage in mvc?

589


Do you know about the new features in asp.net mvc 4 (asp.net mvc4)?

587


When will the .net framework 3.0 be released?

560


How we can register the Area in ASP.Net MVC?

574


How do you specify comments using razor syntax?

611


Is .net framework dead?

547