What is a marker Interface?
What is marker or tagged interface?
An interface that have no member is known as marker or tagged interface. For example: Serializable, Cloneable, Remote etc. They are used to provide some essential information to the JVM so that JVM may perform some useful operation.
//How Serializable interface is written?
public interface Serializable{
}
An interface that have no member is known as marker or tagged interface. For example: Serializable, Cloneable, Remote etc. They are used to provide some essential information to the JVM so that JVM may perform some useful operation.
//How Serializable interface is written?
public interface Serializable{
}
Comments
Post a Comment