What Do you Mean By Object Serialization in java.

Answer Posted / nowsheen tariq

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 ?    29 Yes 1 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Which jsp implicit objects are thread safe?

483


What is difference between page and pagecontext in jsp?

471


How is scripting disabled?

520


Explain the advantages in jsp?

519


What is difference between sendredirect and requestdispatcher?

486






What are the two kinds of comments in jsp and what's the difference between them ?

531


Differentiate between response.sendredirect(url) and ?

635


List the different scope values for the tag in jsp?

510


Can constructor be used instead of init(), to initialize servlet?

503


Explain client and server side validation?

501


Why is it that JComponent have add() and remove() methods but Component doesn’t?

498


What is expression language injection?

495


What is the default value of session attribute in jsp?

452


What is welcome file list?

473


What are the advantages of jstl?

477