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 |
Give any two differences between C++ and java.
In case of inheritance what is the execution order of constructor and destructor?
Explain the available thread states in a high-level?
What are the advantages of functions?
What is java string pool?
What is object class in java?
Explain about abstract classes in java?
could you run the java program without main method?
Explain about static imports in java?
What are the differences between this and super keyword?
What is console based application in java?
Explain different ways of passing arguments to sub-routine?