Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...

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

How large is the .net framework 3.0? Does this change make the release larger?

1012


Can I add asp.net mvc testcases in visual studio express?

1082


In razor syntax, what is the escape sequence character for @ symbol?

994


Will the name change be reflected in any of the existing .net framework 2.0 apis, assemblies, or namespaces?

991


What are the differences between Partial View and Display Template and Edit Templates in ASP.Net MVC?

1077


How to enable Attribute Routing?

1115


Explain entity lifecycle? : Entity framework

1059


What is difference between Viewbag and Viewdata in ASP.NET MVC?

1058


What is viewbag?

1020


Where are the routing rules defined in an asp.net mvc application?

1062


What is entitycontainer? : Entity framework

1025


What is the version number for the next version of the .net framework, codenamed �orcas�?

943


What are the new features 3.5 framework against with the tool?

1067


What is the purpose of a web form?

1007


Explain the advantages and disadvantages of ASP.Net MVC over ASP.NET?

1022