Register now or log in to join your professional community.
marker interface is a interface in java which has no fields or methods.in other words empty interface in java is known as marker interface.
there are some examples of marker interfaces are
1 serializable 2. clonable 3. remote interface
1. java.io.Serializable (the object is serializable)
2.java.lang.Clonable (the object is cloned)
3.javax.servlet.singleThreadModel
Marker interface in java is a kind of interface which has no method is known as marker interface. Serializable, Clonnable is the example of marker interface.
The three marker interface are,
1. MyMarkerInterface.java (which is own created marker interface)2. ImplMarkerInterface.java (A java class which implments my marker interface)3. FunctionalityMarkerInterface.java (which help you to understand how the JVM do special operation for marker interface)
For coding part refer belo URL,
http://beyondcorner.com/create-own-marker-interface-in-java/