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

How many types of methods are there?

0 Answers  


Explain spliterator in java8?

0 Answers  


What is a conditional equation?

0 Answers  


Which collection allows duplicate values in java?

0 Answers  


What is the exception hierarchy in java?

0 Answers  






What is :: operator in java 8?

0 Answers  


Is 0 a real number?

0 Answers  


Does java linked list allow duplicates?

0 Answers  


How many types of exception can occur in a java program?

0 Answers  


whats string ?

10 Answers   HCL,


Explain the importance of throwable class and its methods?

0 Answers  


What does sizeof return?

0 Answers  


Categories