This week's book giveaway is in the Mac OS forum.
We're giving away four copies of a choice of "Take Control of Upgrading to Yosemite" or "Take Control of Automating Your Mac" and have Joe Kissell on-line!
See this thread for details.
The moose likes Programmer Certification (SCJP/OCPJP) and the fly likes Marker/Tag interfaces. Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


JavaRanch » Java Forums » Certification » Programmer Certification (SCJP/OCPJP)
Bookmark "Marker/Tag interfaces." Watch "Marker/Tag interfaces." New topic
Author

Marker/Tag interfaces.

jose chiramal
Ranch Hand

Joined: Feb 12, 2010
Posts: 266
Why do we have marker interfaces, whats the use since they do not have anything(nethods,variables) inside them.

We need to implement the marker interfaces like Serializable,Cloneable etc .
Internally do these interfaces do anything may be use pointers or references or sthg thats not visible to the outside world ?

Thanks
Ankit Garg
Sheriff

Joined: Aug 03, 2008
Posts: 9303
    
  17

There are lots of articles on this on the internet like these: Purpose of Marker Interfaces, Marker Interface Pattern, Marker interfaces in java...


SCJP 6 | SCWCD 5 | Javaranch SCJP FAQ | SCWCD Links
 
GeeCON Prague 2014
 
subject: Marker/Tag interfaces.