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 |
What is lastindexof in java?
How java is platform independent?
41 Answers College School Exams Tests, Infosys, TCS,
Name the types of mouse event listeners ?
Why is method overloading not possible by changing the return type in java?
How do you declare a string variable?
difference between byte stream class and character stream class?
Is zero a positive integer?
What will happen to the exception object after exception handling?
If an object is garbage collected, can it become reachable again?
What is classname class in java?
Can a top level class be private or protected?
What are the two ways in which thread can be created?