What is Marker Interface in Java?

1. What is marker interface? By usage, a marker interface does not contain any methods or variables. It is completely empty interface and for this reason also known as empty interface. See these two marker interface definitions in Java API. java.lang.Cloneable and java.io.Serializable are two marker interfaces often used. See the output screen. No methods …

What is Marker Interface in Java? Read More »