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 |
In the below Java Program, how many objects are eligible for garbage collection?
Difference between start() and run() method of thread class?
Features of Java?
What is polymorphism java example?
what is language and it responsibilities
why the wait,notify,notifyall methods are placed in object class?these are the thread concepts why these methods are placed in Object class?
2 Answers Global Logic, Satyam,
What is the main method java?
they asked class A{} class B{} class c{} all the three class saved as a single file,there is no main method in the file and anothe class M.java class m { psvm(String args[]) { // here the parent class can access } }
2 Answers DNS, IPSR Solutions,
How will you serialize a singleton class without violating singleton pattern?
How we create object in copy constructor?
How do you relate a Interface to a Class? Tell me in Detail?
What about anonymous inner classes in java?