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 |
diff. b/w JAVA and javascript...
Is singleton class thread safe?
How do you escape sequences in java?
String is an immutable object. Then how can the following code be justified. String s1 = ?ABC?; String s1 = s1+?XYZ?; s.o.p(s1); The output is ABCXYZ, which is the value of s1 ?
6 Answers Flextronics, Keane India Ltd,
Can list have duplicates in java?
How you can force the garbage collection?
What is "finally" keyword?
What is stack example?
What is the difference between hashset and treeset in java?
Is it possible to compare various strings with the help of == operator? What are the risks involved?
How does multithreading take place on a computer with a single cpu in java programming?
By what default value is an object reference declared as an instance variable?