Login with  Log in with facebook
Hiring Manager? SIGN UP HERE
3

What are Marker or tagged interfaces in Java. Give some examples.

Rishi Yadav
08/05/2011 at 21:01
1 Answer
1
1

Marker or tagged interfaces in Java are the interfaces with no method implementation in it. eg. Serializable or Cloneable interface. It is used to tag the implementing class based on purpose. They are used to add some functionality to classes or super classes using them. JVM understands the marker interface and takes care how to handle such classes using marker interface.

Poonam Sutaria
08/06/2011 at 18:14

If you want to post any answer to this forum then you need to log in.
Schedule a Demo

Schedule a Demo with us

Name *
Email *
Phone *
Company *
Details