What is marker interface?Tell name of atleast three one?

Showing Answers 1 - 1 of 1 Answers

V.R.K.Sekhar

  • Oct 27th, 2005
 

One of the "clean" features of the Java programming language is that it mandates a separation between interfaces (pure behavior) and classes (state and behavior). Interfaces are used in Java to specify the behavior of derived classes.

Often you will come across interfaces in Java that have no behavior. In other words, they are just empty interface definitions. These are known as marker interfaces. Some examples of marker interfaces in the Java API include:

 - java,lang.Cloneable- java,io.Serializable- java.util.EventListener

  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