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
What are the different types of constructor?
Can a class be final?
Is null function in java?
What is a concrete classes? Is Java object class is concrete class?
Differentiate between == and equals().
Why volatile is used in java?
Define immutable object?
What state does a thread enter when it terminates its processing in java programming?
What is default locale java?
What is class array in java?
Can we override private methods?
What are the java ide’s?
What is the largest data type in java?
What is oop principle in java?
Why java is considered dynamic?