Identity interfaces are interfaces that do not have any methods and properties. It merely indicates that its class belongs to a particular type, which other code can test to allow to do something. The only purpose of using a markup interface is to make the type query available with instanceof, for example:
if (obj instanceof cloneable) {...}
Some containers, such as the EJB container, the servlet container, or the RUN-TIME environment-dependent markup interface recognition class require some sort of processing, such as the Serialialbe interface tag class needs to be serialized.
Java.io.Serializable
A class that does not implement this interface will not be able to serialize or deserialize any of its states. To ensure consistency of serialversionuid values across different Java compilers, the serialization class must declare a clear serialversionuid value.
Java.lang.Cloneable
Indicates that the Object.clone () method can legitimately replicate the class instance by field. Classes that implement this interface should use public methods to override the Object.clone (which is protected). If you invoke the clone of Object on an instance that does not implement the Cloneable interface method, it causes a Clonenotsupportedexception exception to be thrown.
Java.util.RandomAccess
Used to indicate that it supports fast (usually fixed-time) random access. The primary purpose of this interface is to allow a generic algorithm to change its behavior so that it provides good performance when applied to a random or sequential access list.
java.rmi.remote
Remote An interface is used to identify an interface whose methods can be invoked from a non-local virtual machine. Any remote object must implement this interface directly or indirectly. These methods are only available for remote use if they are specified in the remote interface (an extension java.rmi.Remote interface).