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{
}  

Comments

Popular posts from this blog

Access Modifiers

Why public static void main in java?

Java-Exception Handling