aspose file tools*
The moose likes Programmer Certification (SCJP/OCPJP) and the fly likes Serializable Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Spring in Action this week in the Spring forum!
JavaRanch » Java Forums » Certification » Programmer Certification (SCJP/OCPJP)
Bookmark "Serializable" Watch "Serializable" New topic
Author

Serializable

psr krishna
Greenhorn

Joined: Oct 05, 2000
Posts: 12

hi
Can anyone clear my doubt
that is...
How an object which is implementing "Serializable" interface is eligible for serialization without inhereting any properties from Serializable interface since Serializable interface do not defined any methods(behaviour).
thanks inadvance
---shivaram
William Brogden
Author and all-around good cowpoke
Rancher

Joined: Mar 22, 2000
Posts: 12803
    
    5
It is just a tag that is used internally - somewhere in the serialization code there is code like:
if( obj instanceof Serializable ) ....
Java has several of these interfaces used only for tags. Cloneable is another one.
Bill
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Serializable