This week's book giveaway is in the OCAJP 8 forum.
We're giving away four copies of OCA Java SE 8 Programmer I Study Guide and have Edward Finegan & Robert Liguori on-line!
See this thread for details.
The moose likes Java in General and the fly likes marker interface Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of OCA Java SE 8 Programmer I Study Guide this week in the OCAJP 8 forum!
JavaRanch » Java Forums » Java » Java in General
Bookmark "marker interface" Watch "marker interface" New topic
Author

marker interface

Saral Saxena
Ranch Hand

Joined: Apr 22, 2011
Posts: 203

Hi folks,

While going through serialization ,I was reading that ..) How many methods Serializable has? If no method then what is the purpose of Serializable interface?..

What I think is that Serializable interface exists in java.io package and forms core of java serialization mechanism. It doesn't have any method and also called Marker Interface. When your class implements Serializable interface it becomes Serializable in Java and gives compiler an indication that use Java Serialization mechanism to serialize this object..! If there is any other reason than this then please advise me ..! and also please explain a little bit about marker interface,,,!

Mohamed Sanaulla
Saloon Keeper

Joined: Sep 08, 2007
Posts: 3151
    
  33

There are a few useful links in the "Threads other viewed" towards the end of the page.


Mohamed Sanaulla | My Blog
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: marker interface
 
It's not a secret anymore!