Can I create any Marker Interface? If yes then how can I
use it???
Answer Posted / amit singh
there is no difference between blank inerface and marker
interface
yes we can creae our own marker inerface
interface Xyz
{
}
but is this work for us like a serializable and cloneable
marker inerface
i don't know so please
you do one thing to do your own interface to check only
through the insanceof operator in a clsses those implemen
this interface
thanks amit singh
amitsing2008@gmail.com
| Is This Answer Correct ? | 9 Yes | 4 No |
Post New Answer View All Answers
How many bytes is a unicode character?
Explain which of the following methods releases the lock when yield(), join(),sleep(),wait(),notify(), notifyall() methods are executed?
What is object in java?
Is heap stored in ram?
What's the base class of all exception classes?
What is a nested structure?
What is the difference between static method and instance method in Java?
Which container method is used to cause a container to be laid out and redisplayed in java programming?
What is the difference between comparison done by equals method and == operator?
What's the difference between an abstract class and interface in java?
What does ide stand for?
Why java is used everywhere?
What is the purpose of the finally clause of a try-catch-finally statement in java programming?
FOR EXAMPLE WE R HAVING TWO LIST ELEMENTS ..BOTH LISTS CONTAINS ID,NAME,PLACE ..I NEED TO COMPARE BOTH IDS IN TWO LISTS,IF ID'S R SAME MEANS WE HAVE ADD THE DETAILS(LIKE NAME,PLACE) TO MAP...HOW IS POSSIBLE ?CAN ANY ONE SUGGEST?
List the features of java programming language.