Prepare for your Next Interview
|
Welcome to the Geeks Talk forums. You are currently viewing our boards as a guest which gives you limited access to view most discussions and access our other features. By joining our free community you will have access to post topics, communicate privately with other members (PM), respond to polls, upload content and access many other special features. Registration is fast, simple and absolutely free so please, join our community today! If you have any problems with the registration process or your account login, please contact contact us. |
This is a discussion on What is Serialization? within the ASP.NET forums, part of the Web Development category; reply asap....
|
|||||||
|
|||
|
Re: What is Serialization?
Converting Objects into the tangible(Persistable) form(for ex. strings) is serialization. The purpose is to send object data across the network. The reverse process i.e again converting the same string into the object is deserialization
|
|
|||
|
Re: What is Serialization?
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. Regards, Nithya.R [please mark thanks,if its useful to you] |
![]() |
|
| Thread Tools | |
| Display Modes | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| what is object serialization? | karri_sushma | Java | 6 | 07-26-2008 10:12 AM |
| serialization | j_priyaa | Java | 3 | 11-23-2007 03:04 AM |
| custom serialization | sivareddy20 | C# | 1 | 06-26-2007 04:25 AM |
| Is there any Problem with Serialization? | RyanJames | C and C++ | 1 | 11-12-2006 03:10 PM |