File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes Beginning Java and the fly likes Marker Interface Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Beginning Java
Bookmark "Marker Interface" Watch "Marker Interface" New topic

Marker Interface

Niyas Ahmed Sheikh
Ranch Hand

Joined: Jun 15, 2005
Posts: 129

I have doubt in the marker interface.
What is marker interface? If the interface is not having any methods, then it said to be marker inetface?. What is advantage of using marker interface?
Arun Kumarr
Ranch Hand

Joined: May 16, 2005
Posts: 661

Try this link:

Click here

If you are not laughing at yourself, then you just didn't get the joke.
Steve Morrow
Ranch Hand

Joined: May 22, 2003
Posts: 657

That link is related to the performance of list iteration, and doesn't seem to be directly pertinent to the concept of a "marker interface".

I recommend the following:
What is a "marker" interface?
Marker Interface pattern - Marker Interface - Marker Interfaces
The Purpose of the Marker Interface
Maximize your Design ROI with Marker Interfaces and JavaDoc

I also recommend that when feeling the urge to ask "what is a...?" that your first response should be to use a suitable search engine. Chances are good that someone has already published a very good definition of the term in question. You will save yourself the time of waiting for a response, and the time of others from repeating information that already exists elsewhere.

Good luck!
I agree. Here's the link:
subject: Marker Interface
It's not a secret anymore!