ALLInterview.com :: Home Page            
 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                      
tip   To Refer this Site to Your Friends   Click Here
Google
   
 
Categories  >>  Software  >>  Scripts  >>  JSP
 
 


 

 
 PHP interview questions  PHP Interview Questions
 ASP interview questions  ASP Interview Questions
 CGI Perl interview questions  CGI Perl Interview Questions
 JavaScript interview questions  JavaScript Interview Questions
 VB Script interview questions  VB Script Interview Questions
 JSP interview questions  JSP Interview Questions
 Shell Script interview questions  Shell Script Interview Questions
 Python interview questions  Python Interview Questions
 Tcl interview questions  Tcl Interview Questions
 Awk interview questions  Awk Interview Questions
 AJAX interview questions  AJAX Interview Questions
 Ruby on Rails interview questions  Ruby on Rails Interview Questions
 Scripts AllOther interview questions  Scripts AllOther Interview Questions
Question
What Do you Mean By Object Serialization in java.
 Question Submitted By :: Ritesh Prabhu
I also faced this Question!!     Rank Answer Posted By  
 
  Re: What Do you Mean By Object Serialization in java.
Answer
# 1
Object Serialization extends the core Java Input/Output
classes with support for objects. Object Serialization
supports the encoding of objects, and the objects reachable
from them, into a stream of bytes; and it supports the
complementary reconstruction of the object graph from the
stream. Serialization is used for lightweight persistence
and for communication via sockets or Remote Method
Invocation (RMI). The default encoding of objects protects
private and transient data, and supports the evolution of
the classes. A class may implement its own external encoding
and is then solely responsible for the external format.

Serialization now includes an API that allows the serialized
data of an object to be specified independently of the
fields of the class and allows those serialized data fields
to be written to and read from the stream using the existing
protocol to ensure compatiblity with the default writing and
reading mechanisms.
 
Is This Answer Correct ?    10 Yes 0 No
Ritesh Prabhu
 
  Re: What Do you Mean By Object Serialization in java.
Answer
# 2
Serialization is a process of writing the state of the
object in a stream. The state of the object (information
available in the object)will be held in the instance
variable (not in the static variables)

There are various streams like
ByteArrayOutputStream, FileOutputStream,SocketOutputStream
all these streams can be used to store data to various
destinations like memory,file and someother program.

writeObject() method is for carryout the operation of
serialization.
 
Is This Answer Correct ?    27 Yes 1 No
Nowsheen Tariq
 
 
 

 
 
 
Other JSP Interview Questions
 
  Question Asked @ Answers
 
i am using rich faces datatable rich:datatable. On entering the value, values get filtered in table. Now how can i get the value in back9ing bean..?  1
what type of question will be asked in the interview in this software field?????/// wbsedcl2
which is the place to learn java in chennai..  3
What is the difference between Java Servlet & JSP?  1
Can we use methods in JSP? If so where the methods are stored in servlet class file? Persistent5
What are JSP ACTIONS?  2
how to print a string with out using out.println? Elementus-Technologies3
Q : In session created by server with client(browser) How can server find that request coming is belong to new session OR belong to session that is timeout. HCL4
How do you import the packages in the JSP? HCL14
what is difference between redirect and forward method? Wipro11
what will happen if we disable cookies in the web page?  7
How To maintain session ..? TCS3
 
For more JSP 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 © 2012  ALLInterview.com.  All Rights Reserved.

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