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
When the constructor of a class is invoked?
Is hashmap thread safe?
What is derived datatype?
Are true and false keywords?
Will the jvm load the package twice at runtime?
How to sort an array from smallest to largest java?
why would you use a synchronized block vs. Synchronized method? : Java thread
Explain java code for recursive solution's base case?
How do weakhashmap works?
What is the differences between c++ and java? Explain
Can a final variable be initialized in constructor?
What are the main uses of the super keyword?
How to use Media tracker Class.
How can you set an applet’s height and width as a percentage?
What is replacefirst in java?