What Do you Mean By Object Serialization in java.

Answer Posted / 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       View All Answers


Please Help Members By Posting Answers For Below Questions

Explain the difference between servletcontext and pagecontext in jsp?

478


What is the need for jsp?

532


How session is achieved in JSP?(once user logs out,if he press back button of browser he should not be allowed to same page)

2004


Is jsp a front end?

545


What language is jsp?

518






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

510


Can you stop multiple submits to a web page that are initiated by clicking to refresh button?

483


What are the advantages and disadvantages of thread-safe jsp page?

558


Why do we need custom tags in jsp?

481


What is tld in jsp?

478


What are jsp and servlets?

478


How can you include the results of another page?

478


What language is used to write servlets and jsp?

461


Why is _jspservice () method starting with an '_'?

436


List the various action tags used in jsp.

501