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

Why we use jsp instead of html?

482


Explain jsp?

550


What happens when a page is statically included in another jsp page?

561


What is _jspservice method?

520


Give uses of object cloning?

554






What is session scope?

511


Define Composition.

580


What is a hidden comment?

667


Explain jsp action elements or action tags?

491


Why is _jspservice() method starting with an '_' while other life cycle methods do not?

515


In the servlet 2.4 specification singlethreadmodel has been deprecated, why?

510


What is cookie with example?

519


List the various action tags used in jsp.

507


What is expression tag in jsp?

489


What is jsp processing?

481