File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
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

Win a copy of Java Interview Guide this week in the Jobs Discussion forum!
JavaRanch » Java Forums » Certification » Programmer Certification (SCJP/OCPJP)
Bookmark "Marker/Tag interfaces." Watch "Marker/Tag interfaces." New topic

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 ?

Ankit Garg

Joined: Aug 03, 2008
Posts: 9466

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
I agree. Here's the link:
subject: Marker/Tag interfaces.
It's not a secret anymore!