ALLInterview.com :: Home Page KalAajKal.com
 Advertise your Business Here     
Browse  |   Placement Papers  |   Company  |   Code Snippets  |   Certifications  |   Visa Questions
Post Question  |   Post Answer  |   My Panel  |   Search  |   Articles  |   Topics  |   ERRORS new
   Refer this Site  Refer This Site to Your Friends  Site Map  Bookmark this Site  Set it as your HomePage  Contact Us     Login  |  Sign Up                      
info       Did you received any Funny E-Mails from your Friends and like to share with rest of our friends? Yeah!! you can post that stuff   HERE
Google
 
Categories  >>  Software  >>  Microsoft Related  >>  Dot Net  >>  Dot Net Framework
 
 


 

 
 Dot Net Framework interview questions  Dot Net Framework Interview Questions
 Dot Net Remoting interview questions  Dot Net Remoting Interview Questions
 Dot Net WindowsForms interview questions  Dot Net WindowsForms Interview Questions
 Dot Net General interview questions  Dot Net General Interview Questions
 Dot Net AllOther interview questions  Dot Net AllOther Interview Questions
Question
What is serialization ?
 Question Submitted By :: Elisha
I also faced this Question!!     Rank Answer Posted By  
 
  Re: What is serialization ?
Answer
# 1
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 ?    13 Yes 2 No
Guest
 
  Re: What is serialization ?
Answer
# 2
serialization is process of convert object into stream of 
bytes.
2 types of serialization
1. binary serialization
2. XML serialization
 
Is This Answer Correct ?    12 Yes 3 No
Menaka Palanisamy
 
 
 
  Re: What is serialization ?
Answer
# 3
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 ?    3 Yes 0 No
Nithya.r
 
  Re: What is serialization ?
Answer
# 4
serialai
 
Is This Answer Correct ?    1 Yes 1 No
Gtrhty
 

 
 
 
Other Dot Net Framework Interview Questions
 
  Question Asked @ Answers
 
How to identify the Code which Complies corresponding Compiler in .NET? Means Suppose, i am taking One project A.. in which code is implemented using C# langugge. And Another Project B..in Which Code is implemented using VB.NET. Suppose I am creating Project C. i am adding Reference of Project A and B to Project C. So, in Project C, how to identify Project A is Complied through CSCompliler? And Project B is Compiled VBCompiler at Runtime?  1
How do you do role based security ? Accenture1
What is the difference between managed and unmanaged code? IBM5
How could we achieve Langauge Interoperability through "CLS"?? Please Expalin in detail with Example.. Thanks for the Help!!!!! HCL2
How to ensure the credentials for WebService using Windows authentication Proteans1
What is CLR and how it generates native code ? Digital-GlobalSoft1
What are the different authentication modes in the .NET environment?  2
I have a GridView on web form, and a column in a grid is a linkbutton to open popup..., my problem is when i click on link button in a gridview popup opens as well works fine. but when i click on link button once again my popup window doesnt open. Can any one help please...  1
What is the use of finalize and dispose eventhough garbage collector is working? Kanbay3
how many ways for pass the parameters in the fuction in c#  3
creating crystal reports in asp.net & vb.net  1
Requirement is: try { \\SQL Query } catch(Exception i) { print a } catch(SQLQueryException e) { \\SQL Query } Qu)I Got Exception in "try" block. Which "catch" statement (i.e. 1st catch or 2nd catch ) catches the exception and Why??? 3i-Infotech3
How to add 'ASPNET.mdf' file into server explorer in visual studio 2005?  2
If we want to construct our own Garbage collector what are the steps things we have to do? Honeywell3
WHICH IS MORE SECURED AMONG JAVA AND .NET?  7
How can Bitwise OR operator reresents in .Net?? To which alias name a variable points to if it is declared as "int" variable??  1
what is an assembly?  10
What is strong name?  4
Can we look at the IL for an assembly?  2
js fn to go to the particular page when enter is clicked  1
 
For more Dot Net Framework Interview Questions Click Here 
 
 
 
 
 
   
Copyright Policy  |  Terms of Service  |  Help  |  Site Map 1  |  Articles  |  Site Map  |   Site Map  |  Contact Us interview questions urls   External Links 
   
Copyright © 2007  ALLInterview.com.  All Rights Reserved.

ALLInterview.com   ::  Forum9.com   ::  KalAajKal.com