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

Sorting Algotithms

Bitwise right shift operators in Java

Program to to Merge Two sorted Linked lists in Java