What you want to see on DotNetFunda.com ?
DotNetFunda.Com Logo
Twitter TwitterLinkedIn
YouTubeGoogle
 Online : 30099 |  Welcome, Guest!   Register  Login
 Home > Interview Questions > C# Interview Questions > What is serialization and deserializatio ...

What is serialization and deserialization? Explain their significance.

Interview question and answer by: Niladri.Biswas | Posted on: 7/30/2012 | Category: C# Interview questions | Views: 653 | | Points: 40


Answer:

While sending an object from a source to destination, an object will be converted into a binary/xml format. This process is called serialization .

After it is reached to destination, it will be converted back to original object. This process is called deserialization .

Serialization/deserialization will avoid problems like byte reordering,memory layout etc and gives better performance.

Byte Reordering :
Machines might be of type Big-Endian or Small-Endian. Depends on Endian type, most significant bytes will be stored in left-side or right-side. When an object traverse from One Endian machine to another Endian machine, these bytes needs to be reordered. By serializing/deserializing we are avoiding this.

Memory Layout :
Different programming languages might store the object in different ways. When the object is traversed,it needs to be stored in memory according to language architecture. By serializing/deserializing we can avoid this problem.

Asked In: Many Interviews | Alert Moderator 
Found interesting? Add this to:


>> Write Response - Respond to this post and get points

Even more ... | Submit Interview Questions and win prizes!

More Interview Questions from Niladri.Biswas

Even more ... | Submit Interview Questions and win prizes!


About Us | Contact Us | The Team | Advertise | Software Development | Write for us | Testimonials | Privacy Policy | Terms of Use | Link Exchange | Members | Go Top
General Notice: If you find plagiarised (copied) contents on this page, please let us know the original source along with your correct email id (to communicate) for further action.
Copyright © DotNetFunda.Com. All Rights Reserved. Copying or mimicking the site design and layout is prohibited. Logos, company names used here if any are only for reference purposes and they may be respective owner's right or trademarks. | 5/23/2013 5:37:46 PM