Marker or tagged interface in java
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.
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.
public interface Serializable{
}
No comments:
Post a Comment