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 |
If we allocate the memory using 'new' & de-allocated using 'free' then what will happen?
what is mutual exclusion? How can you take care of mutual exclusion using java threads? : Java thread
From the two, which would be easier to write: synchronization code for ten threads or two threads?
Give us the name of the list layoutmanagers in java?
Explain numeric promotion?
How can you eliminate duplicates?
How are this and super used?
Write a program to solve producer consumer problem in java?
what are the differences between java and .net?..why u choose java?
Is 0 an irrational number?
What is console based application in java?
what is singleton in java?