Question: how jvm knows about marker interface?
Answer: 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. ... writeObject() method, the JVM checks if the object implements the Serializable marker interface.