Marker interface is interface which don’t have any method and fields.
That's why we use them only for marking (taging) classes. Standard
marker interfaces are understood by the JVM in a way, that JVM knows
how to treat with them. For example:
java.io.Serializable
java.lang.Cloneable
java.util.EventListener

We can create marker interfaces on our own, but they can be used only
for inheritance purposes.

That's my opinion.

Greets,
Marek Sierbin

On Nov 7, 3:49 pm, tikeswarmohanty mohanty
<[email protected]> wrote:
> Can any body tell me what is the purpose of marker interface in project.

--~--~---------~--~----~------------~-------~--~----~
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/javaprogrammingwithpassion?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to