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 are HTML Helpers, AJAX Helpers in ASP.Net MVC?

756


What is rxjava used for?

865


what is use of entity container?

789


How would you deploy your old applications with .net framework 4.0? Are the old applications compatible?

684


What is route config?

728


How do I use partial view?

724


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?

2011


In razor syntax, what is the escape sequence character for @ symbol?

744


What is the purpose of a web form?

740


Which is the root namespace for fundamental types in .net framework?

758


Which version of .net framework is installed?

692


Can we change web.config settings from iis?

763


what is client wins and store wins mode in entity framework concurrency?

917


What is a model in programming?

745


What is the need of Action Filters in ASP.Net MVC

780