File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes Beginning Java and the fly likes What is object serialization? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Beginning Java
Bookmark "What is object serialization?" Watch "What is object serialization?" New topic

What is object serialization?

Chandra Bairi
Ranch Hand

Joined: Sep 12, 2003
Posts: 152
Can anyone please expalain what exactly is object serialization?
Thanks in advance.

Donald R. Cossitt
Ranch Hand

Joined: Jan 31, 2003
Posts: 401
The process of storing and retrieving objects in an external file is called serialization. Writing to a file is referred to as serializing the object, and reading an object from a file is called deserializing an object.

[ September 15, 2003: Message edited by: Donald R. Cossitt ]

Ranch Hand

Joined: Nov 22, 2008
Posts: 18944
check out this page. Here the serialization is described in detail.
Gayathri Prasad
Ranch Hand

Joined: Jun 25, 2003
Posts: 116
To make objects persistent i.e permanent we need to save them on the harddisk or some media. Saving the objects and making them persistent is called Object Serialization and reverse process is called Deserialization.
Stan James
(instanceof Sidekick)
Ranch Hand

Joined: Jan 29, 2003
Posts: 8791
To be real picky, I'd separate serialization issues from persistence and files. It just turns an object into a string or stream of bytes. Nearly anything can be done with the serialized data.
For example, the same terms are used in sending an object "over the wire" in a distributed application. The sender serializes the object to a stream and the receiver deserializes and recreates the object. Some remote protocols do all this for you, some make you do the work.

A good question is never answered. It is not a bolt to be tightened into place but a seed to be planted and to bear more seed toward the hope of greening the landscape of the idea. John Ciardi
I agree. Here's the link:
subject: What is object serialization?
It's not a secret anymore!