What is serialization ?

Answer Posted / nithya.r

serialization is the process of converting an object into a
sequence of bits so that it can be stored on a storage
medium (such as a file, or a memory buffer) or transmitted
across a network connection link. When the resulting series
of bits is reread according to the serialization format, it
can be used to create a semantically identical clone of the
original object. For many complex objects, such as those
that make extensive use of references this process is not
straightforward.
Serialization is a mechanism by which you can save the
state of an object by converting it to a byte stream.
Two types:
1.Binary Serializable
2.XML Serializable
Methods:
The serializable interface is an empty interface,
it does not contain any methods. So we do not implement any
methods.
Use:
Whenever an object is to be sent over the network,
objects need to be serialized. Moreover if the state of an
object is to be saved, objects need to be serilazed.
Externalizable:
Externalizable is an interface which contains two
methods readExternal and writeExternal. These methods give
you a control over the serialization mechanism. Thus if
your class implements this interface, you can customize the
serialization process by implementing these methods.

Is This Answer Correct ?    23 Yes 5 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What are the 3 segments of the default route, that is present in an ASP.NET MVC application?

597


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?

1815


What is .net architecture and framework?

583


What are actions in asp.net mvc?

578


What are advantages of Dependency Injection (DI) in ASP.Net MVC?

579






What is a view engine?

570


what do you mean by table-per-type?

632


What is the difference between entity framework and mvc?

522


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

491


Why to use Html.Partial in ASP.Net MVC?

603


What is mapping in entity framework? : Entity framework

524


What is route config?

561


What is web api‘s in asp.net mvc 4 ?

591


What is edm designer? : Entity framework

565


What is storage model? : Entity framework

556