Question: how jvm will identifies marker interface?
Answer: Java has many built-in marker interfaces, such as Serializable, Cloneable, and Remote. ... If we try to clone an object that doesn't implement this interface, the JVM throws a CloneNotSupportedException. Hence, the Cloneable marker interface is an indicator to the JVM that we can call the Object. clone() method.