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 |
What does the “static” keyword mean?
Does java support multiple inheritance or not?
Can an integer be null java?
What is autoboxing and unboxing?
What is string intern in java?
Objects or references which of them gets garbage collected?
why the wait,notify,notifyall methods are placed in object class?these are the thread concepts why these methods are placed in Object class?
2 Answers Global Logic, Satyam,
How to connect to a remote database using Applet?
What will be the output of round(3.7) and ceil(3.7)?
how to connect two diffrent applet files
What is a variable analysis?
What method is used to know the status of Checkbox(i.e it is checked or unchecked)?