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
Do I need microsoft .net framework?
What is .net architecture?
Is dapper better than entity framework?
Explain something about model, view and controllers in asp.net mvc?
Which .net framework is installed?
What are ajax helpers in mvc?
What is ViewStart Page in ASP.Net MVC?
What are the Core features of ASP.NET MVC?
Why to use '{resource}.axd/{*pathInfo}' in routing in ASP.Net MVC?
What is entityset? : Entity framework
Which version of the common language runtime (clr) does the .net framework 3.0 use?
what is lazy loading in entity framework?
Why should we go for entity framework?
Explain representational state transfer (rest) in detail?
Do you know about the new features in asp.net mvc 4 (asp.net mvc4)?