1. kavya

    It’s a kind of interface which has no method is known as marker interface. Serializable, Clonnable is the example of marker interface to create Marker Interface in Java
    Use of Marker Interface:
    Marker Interfaces are used to indicate something to compiler/JVM. If JVM see that a class is a object of Marker Interface then it will perform some special operation. Take an example with Serializable, Clonnable marker interface, if JVM see a Class is Serialized/Clonnable then It will do some special operation on it, similar way if JVM sees one Class is implemented custom marker interface which is created by ourself then the JVM do some special operation.

  2. smily

    one of the best explanation i can think of about marker interface in java..


Leave a Reply.. code can be added in <code> </code> tags