Marker Interface in java is an interface with no fields or methods within it. It is used to convey to the JVM that the class implementing an interface of this category will have some special behavior. Hence, an empty interface in java is called a marker interface. A marker interface is used as a tag to inform a message to the Java compiler so that it can add special behavior to the class implementing it. Java marker interface has no members in it. Let's take the java.io.Serializable marker interface. - Study24x7
Social learning Network
86 followers study24x7 05 Dec 2019 06:13 PM study24x7 study24x7

Marker Interface in java is an interface with no fields or methods within it. It is used to convey to the JVM that the class implementing an interface of this category will have some special behavior. Hence, an empty interface in java is called a marker interface. A marker interf...

See more

study24x7
Write a comment
Related Questions
500+   more Questions to answer
Most Related Articles