How can be define MARKER interfce in java



How can be define MARKER interfce in java..

Answer / 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

More Core Java Interview Questions

how to split string in java?

0 Answers  


What do you understand by the term singleton?

0 Answers  


What is race condition ?? (Threading concept) TCS 2 sept10

3 Answers   SparkTG, TCS,


What is a class reference?

0 Answers  


Why do inner class cannot have static declaration except static nested class?

2 Answers   TCS, Wipro,






Which sorting is best in java?

0 Answers  


What do you mean by aggregation?

0 Answers  


What is the difference between a local variable and an instance variable?

0 Answers  


Difference between String and StringBuffer.

3 Answers   GE, IBM,


Is an integer an object?

0 Answers  


What is difference between arraylist and list in java?

0 Answers  


What is the reason that multiple inheritance is not possible in java??

1 Answers  


Categories