Java Marker interface

Marker/Tagging Interfaces: An interface with no methods is known as a marker or tagged interface.   Why marker interface used: It provides some useful information to the JVM/compiler so that the JVM/compiler performs some special operations on it. It is used for better readability of code.  Example: Serializable, Cloneable, etc.   Syntax public interface Interface_Name … Read more