What is markup interface? What is the purpose of markup interface?

Showing Answers 1 - 21 of 21 Answers

ramanareddy

  • Aug 13th, 2007
 

Marker interface is Java interface, Which has no methods

The purpose of marker interface is the JVM mark the interface which implementation take care me
User could not implement them, JVM itself implement that is why we are using marker interface.

  Was this answer useful?  Yes

Marker interface does not defines any methods. Ex: Serilaizalble, Clonabale, SingleThreadModel.
Marker interface is used to indicate to the JVM about certain functionality of the class implements in its in feature.

sampra

  • Feb 14th, 2008
 

Marker Interface is a Java Interface which has no methods. and whole responsibilty on you to create method

  Was this answer useful?  Yes

nuttyvarun

  • Feb 21st, 2008
 

A so-called marker interface is a Java interface which doesn't actually define any fields. It is just used to "mark" Java classes which support a certain capability -- the class marks itself as implementing the interface. For example, the java.lang.Cloneable interface.

In Java language programming, interfaces with no methods are known as marker interfaces. Marker interfaces are Serializable, Clonable, SingleThreadModel, Event listener. Marker Interfaces are implemented by the classes or their super classes in order to add some functionality.

  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