How can be define MARKER interfce in java



How can be define MARKER interfce in java..

Answer / ravinder

MARKER INTERFACE or TAGGED INTERFACE ARE GIVING SOME SORT
OF INFORMATION ABOUT THAT PARTICULAR OBJECT and it will
giving some marker abt thae object

Generally a interface witout methods are called are
marker/tagged interface..(but this is not corect)

Ex:
clonable,runnable,comparable,serializable


A inrefaces with some ability are ex of marker interface

1)in comparable interface,
one method compare() will be there.......>
.....



ex:
interface Good{}....>gives some infor.abt obj called as it
is good

interface Bad{}

Is This Answer Correct ?    6 Yes 7 No

Post New Answer

More Core Java Interview Questions

Can a function return a function?

0 Answers  


when we write class.forName("any one class"); what happens actually?what it will return?explain stepwise?

6 Answers  


is memory to the abstract class allocated ..or objects not instantiated

7 Answers   Synechron, TCS,


jdbc drivers?

8 Answers   Wipro,


Why is sizeof not a function?

0 Answers  






What is object cloning in Java?

0 Answers   SwanSoft Technologies,


What is percentage in java?

0 Answers  


Are constructors methods?

0 Answers  


What is emant by API? is it related to java only or it is common for all OOPS supporting language?

3 Answers  


How many JVMs can run on a single machine and what is the Just-In-Time(JIT) compiler?

0 Answers   Global Logic,


what is multithreading?

5 Answers   Virtusa,


Can you override a private or static method in java?

1 Answers  


Categories