aspose file tools
The moose likes Beginning Java and the fly likes regarding Serialization Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login


JavaRanch » Java Forums » Java » Beginning Java
Reply 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
 
Similar Threads
why Serializable has no method and constant in it?
what are the classes that supports a class when it is serialized?
marker interface
How to create object as Serializable?
some about apache tomcat session?