This week's giveaway is in the Spring forum.
We're giving away four copies of REST with Spring (video course) and have Eugen Paraschiv on-line!
See this thread for details.
The moose likes Beginning Java and the fly likes Serialization Unleashed Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of REST with Spring (video course) this week in the Spring forum!
JavaRanch » Java Forums » Java » Beginning Java
Bookmark "Serialization Unleashed" Watch "Serialization Unleashed" New topic

Serialization Unleashed

Girish Vasmatkar
Ranch Hand

Joined: Apr 24, 2008
Posts: 201
Hello Ranchers,

Here is my question : I have read books regarding Serialization and came to know how the serialization works ,but i can't think of the programming situations where we need to use serialization. I know that to store the state of the objects we use it but can any one provide me some useful links or at least the programming situations where the concept of serialization comes into play.
Please take it easy as this question may seem silly to some people.

Thanks & Regards
Harshit Rastogi
Ranch Hand

Joined: Apr 15, 2008
Posts: 131
Just consider the situation where you have to send the data to a remote computer?
How would you do to send it across a network. The date could be text,numeric or combination of both.
So to send the data in one format irrespective of type of data send and to minimize the overload of other parameter the data needs to be sent as Bytes.
so implementing serializable will change the object into bytestream automatically and data is send, the user need not to bother about anything

My Techie Blog - Java Questions
Girish Vasmatkar
Ranch Hand

Joined: Apr 24, 2008
Posts: 201
Thank you very much Harshit
I agree. Here's the link:
subject: Serialization Unleashed
jQuery in Action, 3rd edition