How can be define MARKER interfce in java

Answer Posted / ravinder

MARKER INTERFACE or TAGGED INTERFACE ARE GIVING SOME SORT
OF INFORMATION ABOUT THAT PARTICULAR OBJECT and it will
giving some marker abt thae object

Generally a interface witout methods are called are
marker/tagged interface..(but this is not corect)

Ex:
clonable,runnable,comparable,serializable


A inrefaces with some ability are ex of marker interface

1)in comparable interface,
one method compare() will be there.......>
.....



ex:
interface Good{}....>gives some infor.abt obj called as it
is good

interface Bad{}

Is This Answer Correct ?    6 Yes 7 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

how to run ecllipse with jettyserver for windows environment using batch file

1505


What are static blocks and static initalizers in java ?

589


What are the changes in java.io in java 8 ?

564


What is a literal coding?

521


What is stringreader?

530






What is the implementation of destroy method in java. Is it native or java code?

492


What is the difference between superclass and subclass?

559


Why are global variables used?

519


What is boolean false?

531


What do you understand by a Static Variable?

642


How many techniques can be employed to create a string object?

566


What is t in parametric equations?

559


State one difference between a template class and class template.

630


What is a vector in java?

580


Which collection is sorted in java?

556