Monday, January 2, 2012 What is Marker interfaces in Java and why required Why Marker or Tag interface do in Java 1) Looking carefully on marker interface in Java e.g. Serializable , Clonnable and Remote it looks they are used to indicate something to compiler or JVM. So if JVM sees a Class is Serializable it done some special operation on it, similar way if JVM sees one Class is implement Clonnable it performs some operation to support cloning. Same is true for RMI and Remote interface. So in short Marker interface indicate, signal or a command to Compiler or JVM .
Read full article from What is Marker interfaces in Java and why required
No comments:
Post a Comment