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 treeset in java?
What about interrupt() method of thread class ?
How do you empty a list in java?
What is bean? Where it can be used?
What is a variable in java?
What is the main advantage of passing argument by reference?
What is temp in java?
What is the difference between throw and throws? What is the similarity between try and throw?
What is constructor chaining and how is it achieved in java?
What are the common problems you have faced while implementing Java?
What does compareto () do in java?
Differences between C and Java?