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

What is lastindexof in java?

0 Answers  


How java is platform independent?

41 Answers   College School Exams Tests, Infosys, TCS,


Name the types of mouse event listeners ?

2 Answers  


Why is method overloading not possible by changing the return type in java?

0 Answers  


How do you declare a string variable?

0 Answers  


difference between byte stream class and character stream class?

0 Answers  


Is zero a positive integer?

0 Answers  


What will happen to the exception object after exception handling?

0 Answers  


If an object is garbage collected, can it become reachable again?

0 Answers  


What is classname class in java?

0 Answers  


Can a top level class be private or protected?

0 Answers  


What are the two ways in which thread can be created?

0 Answers  


Categories