What is the use of Empty Interface?

Showing Answers 1 - 16 of 16 Answers

The Other Name for such interface is Marked or Tagged Interface's.

The following are the some examples of such Interface's
                                 1)Serialiazable
                                  2)Cloneable
there r many such interface's in java,using such Interface's will get the previleged permission's from the jvm.

example: any class implement's serialiazable interface such class object's transferable from one system to the other.

  Was this answer useful?  Yes

Interfaces with empty bodies are often used as markers to tag classes as having a certain property or behavior. Such interfaces are also called ability interfaces. Java APIs provide several examples of such marker interfaces: java.lang.Cloneable, java.io.Serializable, java.util.EventListener.

  Was this answer useful?  Yes

sampra

  • Feb 22nd, 2008
 

marker interface's in java,using such Interface's will get the previleged permission's from the jvm.

  Was this answer useful?  Yes

sampra

  • Mar 6th, 2008
 

Cloneable, Serializable, EventListener, singleThread model RAndom Access are the marker interface and they just inform to JVM to provide particular property in the objects

  Was this answer useful?  Yes

Give your answer:

If you think the above answer is not correct, Please select a reason and add your answer below.

 

Related Answered Questions

 

Related Open Questions