Originally posted by Ravinder S Edhan:
If you dig inside this 'Serializable' interface, you will come to know how does this work.
Ehm, no you won't. It is a marker interface, it has no source code that does anything. Below is a truncated version of the source code for Serializable (I've removed the comments to save space):