This week's giveaway is in the Spring forum.
We're giving away four copies of REST with Spring (video course) and have Eugen Paraschiv on-line!
See this thread for details.
The moose likes Beginning Java and the fly likes empty interface Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of REST with Spring (video course) this week in the Spring forum!
JavaRanch » Java Forums » Java » Beginning Java
Bookmark "empty interface" Watch "empty interface" New topic

empty interface

pulijala hari
Ranch Hand

Joined: May 14, 2005
Posts: 70
Hi all,

Why shall we use an empty interface(marker interface)?
Is there any specific use if there are no methods in the interface?

A Sethi

Joined: Oct 11, 2005
Posts: 6
A marker interface is a interface with emplty methods/behavior. One of its purposes is to tag the classes implementing this interface. mainly this is used to group classes of the interface type.

In this case, any instances of the class are valid instances of interface.

refer to this link.
Raghuveer Kumarakrishnan
Ranch Hand

Joined: Mar 13, 2005
Posts: 32
I found this link useful

Hope this helps!!!

Raghu<br />SCJP 1.4<br />SCWCD 1.4<br />SCBCD 1.3
I agree. Here's the link:
subject: empty interface
It's not a secret anymore!