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 is thread? What are the high-level thread states? Or what are the states associated in the thread? : Java thread
What is a control variable example?
What is numel matlab?
Why is whitespace important?
What is variable length arguments in java?
Which collection is ordered in java?
What is command line argument in java?
Mention a package that is used for linked list class in java.
What does snprintf return?
Can we have two main methods in a java class?
According to java operator precedence, which operator is considered to be with highest precedence?
What are streams in java 8?
Can we define static methods inside interface?
How do you avoid global variables?
What is a void in java?