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


Please Help Members By Posting Answers For Below Questions

How long will it take to learn java?

503


What is treeset in java?

544


Why parsing is done?

502


What is an infinite loop?

547


Why set is used in java?

569






What is == and === in javascript?

556


Are strings immutable in java?

523


How do you use spaces in java?

526


Can inner class have constructor?

548


In a container there are 5 components. I want to display all the component names, how will you do that?

1559


If we don’t want some of the fields not to serialize how to do that?

565


What is a Presistent Object?

640


How do you write a conditional statement?

519


Is 0 true or is 1 true?

515


What is difference between public static and void?

481