This week's book giveaways are in the Java EE and JavaScript forums.
We're giving away four copies each of The Java EE 7 Tutorial Volume 1 or Volume 2(winners choice) and jQuery UI in Action and have the authors on-line!
See this thread and this one for details.
The moose likes Beginning Java and the fly likes regarding Serialization Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of The Java EE 7 Tutorial Volume 1 or Volume 2 this week in the Java EE forum
or jQuery UI in Action in the JavaScript forum!
JavaRanch » Java Forums » Java » Beginning Java
Bookmark "regarding Serialization" Watch "regarding Serialization" New topic
Author

regarding Serialization

surya.raaj prakash
Ranch Hand

Joined: Oct 30, 2009
Posts: 76
Hi Friends,

I have doubt regarding Serialization.
if the class A implements serializable.
My Question is The Serializable interface is known as a maker or tag interface,because the interface doesn't have any method to implement.How class(class A) will serializable if the interface doesn't have any methods? and How it possible?
David O'Meara
Rancher

Joined: Mar 06, 2001
Posts: 13459

Implied but not stated in the API for java.io.Serializable is that while classes that require special serialisation and deserialisation instructions can use the methods readObject and writeObject, a serialisable Class that does not have these methods will still have a default serialisation and deserialisation. ie the JVM does it for you as long as the Class implements java.io.Serializable
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: regarding Serialization