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 wat is marker interface and it's use Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Beginning Java
Bookmark "wat is marker interface and it Watch "wat is marker interface and it New topic

wat is marker interface and it's use

anilellendula kumar
Ranch Hand

Joined: Jul 12, 2005
Posts: 43
wat clarification on marker interface? i knew that marker interface is the an interface it doesnot have any methods, if it doesnot have any methods wat is the use of implementing this methods? as per basic java fundamentals , an interface is nothing but it has all abstract methods where u implementing an interface we need derive the methods?but wat about the case in marker interfce

Ex: serilizable interface...
Steve Simon Joseph Fernandez
Ranch Hand

Joined: Jul 17, 2005
Posts: 35

As the name suggests, a marker interface marks the class implementing it as having a particular property. For example, the Serializable marker interface - when a class implements it, this is a way of telling the JVM that this class can be serialized directly - there is no special processing to be done to serialize objects of this class.

Ernest Friedman-Hill
author and iconoclast

Joined: Jul 08, 2003
Posts: 24199

Moving to Java in General (Beginner).

[Jess in Action][AskingGoodQuestions]
Steve Morrow
Ranch Hand

Joined: May 22, 2003
Posts: 657

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 agree. Here's the link:
subject: wat is marker interface and it's use
It's not a secret anymore!