ProAnswers.org

What is a Marker Interface?

An Interface which doesn’t have any declaration inside but still enforces a mechanism.

Marker interfaces are those which do not declare any required methods, but signify their compatibility with certain operations. The java.io.Serializable interface and Cloneable are typical marker interfaces. These do not contain any methods, but classes must implement this interface in order to be serialized and de-serialized.