How Comparable is marker interface
when it is having
int compareTo(Object o)
method...

we can say it as just interface...??

Recommended Answers

All 3 Replies

So would I. The API doc doesn't use the term "marker" for it, so who says its a marker interface?

k.
tell me the exact def for marker interface.
give some examples.

Google it - lots of definitions and egs on the web.

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.