Why we need to serialize the object

Showing Answers 1 - 8 of 8 Answers

Swaranjali

  • Feb 15th, 2006
 

Serialization means to convert into byte stream ,we need to  serialize object so that if many thread calls that function then consistentency should be maintained.

  Was this answer useful?  Yes

harish_oty

  • Feb 17th, 2006
 

Objects are always passed by reference.

Let us consider the following

If you are working with distributed apps, if we want to pass object over the network, only reference will be passed from client to the server. Then how can it refer object from server to the client memory...so object to be serialized means that all the fields to be converted into bytes and sent. The same to be deserialized as objects in the destination. So we can get the exact object what we have in the client. In case if we want certain fields not to be serialized, just use TRANSIENT when you declare variables.

Regards

Hari

  Was this answer useful?  Yes

narendra

  • Mar 6th, 2006
 

   serialization is nothing but state of the object in a stream.

   or file of network.

  Was this answer useful?  Yes

balajifortest

  • Oct 26th, 2006
 

Hai,

  Seralization is the process of converting object into file streams this because

in order to transfer it through out the network.if u use SOAPFormatter it seralizes to XML File where as Binary Formatters seralizes to Binary File these file streams get passed through the network at the other end(Remote Machine)it gets de-seralized again.

  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

 

Related Open Questions