WHAT IS MARKER INTERFACE,AND NO METHODS IS NOT THERE ON THAT
INTERFACE THEN WHY WE USED IN JAVA?
Answers were Sorted based on User's Feedback
Answer / ravi
Interfaces without any methos or constants are known as
Marker interface.They are used only to mark or tag a
class.it indicates that class supports that functionality.
| Is This Answer Correct ? | 7 Yes | 0 No |
Answer / rameshreddy
it is in depth concept. The compiler developer internally
developed like that, Through that markinterface only(tag
interface) ,compiler identifies its internal functinality
| Is This Answer Correct ? | 1 Yes | 2 No |
Answer / olok
compiler treat this type of interface differently.
eg coloneable,serializable
| Is This Answer Correct ? | 1 Yes | 3 No |
Can constructor be static or final?
What is the method to declare member of a class static?
what is meant by abstract class?
What are predicates in java 8?
What is integer valueof?
What is the difference between the continue and break statement?
what is the difference between yielding and sleeping? : Java thread
How to make object serializable in java?
How can you add and remove nodes in jtree?
How to perform merge sort in java?
What is appletviewer?
In java how do we copy objects?