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 long will it take to learn java?
What is treeset in java?
Why parsing is done?
What is an infinite loop?
Why set is used in java?
What is == and === in javascript?
Are strings immutable in java?
How do you use spaces in java?
Can inner class have constructor?
In a container there are 5 components. I want to display all the component names, how will you do that?
If we don’t want some of the fields not to serialize how to do that?
What is a Presistent Object?
How do you write a conditional statement?
Is 0 true or is 1 true?
What is difference between public static and void?