What Do you Mean By Object Serialization in java.

Answers were Sorted based on User's Feedback



What Do you Mean By Object Serialization in java...

Answer / 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

What Do you Mean By Object Serialization in java...

Answer / ritesh prabhu

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 ?    11 Yes 0 No

Post New Answer

More JSP Interview Questions

Tell us about the stages (phases) of the jsp life cycle.

1 Answers  


What are the different types of jsp directive?

1 Answers  


Which jsp implicit objects are thread safe?

1 Answers  


What are the types of directives in jsp?

1 Answers  


What does .com stand for?

1 Answers  


What is a page directive?

1 Answers  


What do you know about pagecontext and what are the advantages of using it?

1 Answers  


What is session tracking in jsp?

1 Answers  


What is jsp scriptlet tag used for?

1 Answers  


How can I prevent the use of scripts and java code on the jsp page?

1 Answers  


how can we retrieve the values in jsp by using custom tags

4 Answers   IBM, Wipro,


Which attribute specifies a jsp page that should process any exceptions thrown but not caught in the current page? : Citibank

1 Answers  


Categories