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
Briefly describe the roles of clr in .net framework?
What is display mode in mvc?
What is the mvc pattern (model view controller pattern)?
What is edm (entity data model)? : Entity framework
What is storage model? : Entity framework
How to Redirect Tracing to a File
What is .net architecture?
Which .net framework is installed?
How does the .net framework 3.0 relate to windows vista?
Explain the difference between Viewbag and Viewdata in ASP.NET MVC?
What is Attribute Routing in ASP.Net MVC?
Why to use html.partial in mvc?
What are Action Filters in ASP.NET MVC and its use?
What is the difference between .net core and .net framework?
What is representational state transfer (rest) mean?