Java Serialization

Serialization basics,

http://java.sun.com/developer/technicalArticles/Programming/serialization/

Version control – serialver

Caching of objects – resetting streams

Very verbose

Java writes its own version ID, you can specify one too which would helps in avoding InvalidClassException as in if you change (just add/remove) some data members of class without necessarily changing writing mechanism (your code of writeObject)

Details, http://www.javaworld.com/community/node/2915

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s