Question: how jvm understand marker interface?
Answer: JDK Marker Interfaces Hence, the Cloneable marker interface is an indicator to the JVM that we can call the Object. clone() method. In the same way, when calling the ObjectOutputStream. writeObject() method, the JVM checks if the object implements the Serializable marker interface.