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
Explain the tools used for unit testing in ASP.Net MVC
In Server how to check whether model has error or not in ASP.Net MVC
What are the 2 popular asp.net mvc view engines?
What is entity graph? : Entity framework
Explain RenderBody and RenderPage in ASP.Net MVC?
What are ajax helpers in asp.net mvc?
Can you use Razor code in Javascript in ASP.Net MVC?
What are the new features 3.5 framework against with the tool?
What is oauth in web api?
explain why t4 entity is important in entity framework?
Explain the use of Inversion of control (IOC)?
What is ado.net data provider? : Entity framework
Which approach provides better support for test driven development - asp.net mvc or asp.net webforms?
Explain bundle.config in mvc4?
Can you explain renderbody and renderpage in asp.net mvc?