
How serialization work? What is the secret behind it. Can we create our one serializable interface. If so how?

Please visit the following links:
http://www.roseindia.net/java/beginners/serializable-singleton.shtml
http://www.roseindia.net/java/example/java/io/SerializingObject.shtml

First link is not suitable at all for this question, however 2nd link description is quite okay but example :(. My query was how to create our own interface which can simulate serializable behavior.
Like : I have interface name MySerializable which give same function of existing Serializable..
If you are facing any programming issue, such as compilation errors or not able to find the code you are looking for.
Ask your questions, our development team will try to give answers to your questions.