in JAVA by
What is a marker interface?

2 Answers

0 votes
by
A Marker interface can be defined as the interface which has no data member and member functions. For example, Serializable, Cloneable are marker interfaces. The marker interface can be declared as follows.

public interface Serializable{    

}
0 votes
by

An empty interface in Java is referred to as a Marker interface. Serializable and Cloneable are some famous examples of Marker Interface. 

Related questions

0 votes
asked Apr 9, 2021 in JAVA by Robindeniel
0 votes
asked May 31 in JAVA by Robin
0 votes
asked Apr 15, 2021 in JAVA by SakshiSharma
...