What is serilization and deserilization

Questions by sudha_e   answers by sudha_e

Showing Answers 1 - 9 of 9 Answers

CHANDRA SEKHAR JONNALAGADDA

  • Jun 13th, 2006
 

 

 

 HI FRIENDS

serilization is the machanisim that binds to geather code and data it mauplates and keeps both safe from out side interface .

  Was this answer useful?  Yes

Ujjal Bhattacharjee

  • Jun 15th, 2006
 

Hi,

Object serialization is the process of saving an object's state to a sequence of bytes, as well as the process of rebuilding those bytes into a live object at some future time. The Java Serialization API provides a standard mechanism for developers to handle object serialization. The API is small and easy to use, provided the classes and methods are understood.

chekc this link for details http://java.sun.com/developer/technicalArticles/Programming/serialization/

To serialize an object means to convert its state to a byte stream so way that the byte stream can be reverted back into a copy of the object. A Java object is serializable if its class or any of its superclasses implements either the java.io.Serializable interface or its subinterface, java.io.Externalizable. Deserialization is the process of converting the serialized form of an object back into a copy of the object.

For example, the java.awt.Button class implements the Serializable interface, so you can serialize a java.awt.Button object and store that serialized state in a file. Later, you can read back the serialized state and deserialize into a java.awt.Button object.

  Was this answer useful?  Yes

sampra

  • Feb 22nd, 2008
 

taking object state in flat file is serilization where as reconstructing new obj wt that data is deserlization

  Was this answer useful?  Yes

Give your answer:

If you think the above answer is not correct, Please select a reason and add your answer below.

 

Related Answered Questions