What is serialization ?

Answers were Sorted based on User's Feedback



What is serialization ?..

Answer / guest

Serialization is the process of converting an object into a
stream of bytes. Deserialization is the opposite process of
creating an object from a stream of bytes.
Serialization/Deserialization is mostly used to transport
objects (e.g. during remoting), or to persist objects (e.g.
to a file or database).Serialization can be defined as the
process of storing the state of an object to a storage
medium. During this process, the public and private fields
of the object and the name of the class, including the
assembly containing the class, are converted to a stream of
bytes, which is then written to a data stream. When the
object is subsequently deserialized, an exact clone of the
original object is created.
? Binary serialization preserves type fidelity, which is
useful for preserving the state of an object between
different invocations of an application. For example, you
can share an object between different applications by
serializing it to the clipboard. You can serialize an object
to a stream, disk, memory, over the network, and so forth.
Remoting uses serialization to pass objects "by value" from
one computer or application domain to another.
? XML serialization serializes only public properties and
fields and does not preserve type fidelity. This is useful
when you want to provide or consume data without restricting
the application that uses the data. Because XML is an open
standard, it is an attractive choice for sharing data across
the Web. SOAP is an open standard, which makes it an
attractive choice.
There are two separate mechanisms provided by the .NET class
library - XmlSerializer and SoapFormatter/BinaryFormatter.
Microsoft uses XmlSerializer for Web Services, and uses
SoapFormatter/BinaryFormatter for remoting. Both are
available for use in your own code.

Is This Answer Correct ?    62 Yes 7 No

What is serialization ?..

Answer / menaka palanisamy

serialization is process of convert object into stream of
bytes.
2 types of serialization
1. binary serialization
2. XML serialization

Is This Answer Correct ?    58 Yes 9 No

What is serialization ?..

Answer / 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

What is serialization ?..

Answer / 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

What is serialization ?..

Answer / kirti

Serialization is the process of converting an object into a stream of bytes. Deserialization is the opposite process of creating an object from a stream of bytes. Serialization / Deserialization is mostly used to transport objects (e.g. during remoting), or to persist

objects (e.g. to a file or database).

Is This Answer Correct ?    0 Yes 0 No

What is serialization ?..

Answer / rangareddy

serialization is the proces used for the persistance of an object by wriotting the object's state to a stream of data. Object serialization takes an object's state,and convert it to a byte stream.

Is This Answer Correct ?    7 Yes 8 No

What is serialization ?..

Answer / gtrhty

serialai

Is This Answer Correct ?    11 Yes 20 No

Post New Answer

More Dot Net Framework Interview Questions

Does .NET Framework support SAX?

0 Answers   Wipro,


Can you explain the page life cycle of mvc?

0 Answers  


What is the use of the default route {resource}.axd/{*pathinfo} ?

0 Answers  


what is view state

3 Answers   Wipro,


Why do I get errors when I try to serialize a Hashtable

1 Answers  






What is basic authentication in web api?

0 Answers  


What is mvc entity framework?

0 Answers  


im software developer (.net). i goth1b (usa )appointment 30th of this month . chennai people asking responsbilities .can anyone wht responsbilities i need say . plz help me

2 Answers  


What is representational state transfer (rest) mean?

0 Answers  


What is the use of display modes?

0 Answers  


The order of the filters that get executed, if the multiple filters are implemented?

0 Answers  


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

0 Answers   NA,


Categories