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
mention what is the key advantage of using entity framework or ef?
What is difference between Viewbag and Viewdata in ASP.NET MVC?
How to use Jquery Plugins in ASP.Net MVC validation?
What is .net core framework?
explain what does .edmx file contains?
Can you explain model, controller and view in mvc?
What is entityset? : Entity framework
what is way of loading data in ef (entity framework)?
How does servicing work for the .net framework 3.0? If I install the .net framework 3.0, can I get service updates for the .net framework 2.0?
How to Create an Intranet Site Using ASP.NET MVC?
What is the 'page life cycle' of an ASP.NET MVC?
How route table is created in ASP.NET MVC?
What is rxjava used for?
What are action filters?
What is attribute routing in mvc?