• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

few doubts on serialization

 
Ranch Hand
Posts: 399
2
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi,

I have read about serialization (saving the state of object on persistant store(network, file etc..)). I want to have a deeper understanding of few concepts which work behind Serialization.

I understand we implement serializable interface to achieve serialization. I appreciate if any one could help me in understanding this.

Few questions about serialization.

What assures us that the Object is serialized? (implementing serializable infterface and using objectOutputStream or objectInputStream assures it? )
What are the things we need to keep in mind while serialization?
What are the most common issues we face during serialization and how to overcome them?
What are the sequence of steps that happen when object is Serialized?

Thank you.

Ayub
[ May 31, 2006: Message edited by: Ayub ali khan ]
 
Ranch Hand
Posts: 93
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
serialization is a process to store an object in secondary storage device, u know that, in simple term its storing information (structure) of an object (class) with its (class level) variable's value. Primitive data type (int, char,....) are by default eligible for this, and if your (main) object have reference to another (contained) object that object should be serializable, by implementing serializable interface or by other mean. In case object contains reference to another object and that object is not serializable then while deserialization (when you are reading object from secondary storage to memory) that (contained) object included in (main) object will be available but the value of (contained) object will be lost, because it was never stored.
other thread
 
Ayub ali khan
Ranch Hand
Posts: 399
2
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Thank you Sanjeev.

I will do some further research on this topic. I apprecaite your help !!

Thank you.
 
I need a new interior decorator. This tiny ad just painted every room in my house purple.
a bit of art, as a gift, that will fit in a stocking
https://gardener-gift.com
reply
    Bookmark Topic Watch Topic
  • New Topic