Marker Interface - ayushmathur94/DirectQuesAns_Prep GitHub Wiki

Q. What is a marker interface?

A Marker interface can be defined as the interface having no data member and member functions. In simpler terms, an empty interface is called the Marker interface. The most common examples of Marker interface in Java are Serializable, Cloneable etc. The marker interface can be declared as follows.

public interface Serializable{
}
⚠️ **GitHub.com Fallback** ⚠️