why marker interfaces are there in java
Answer Posted / ravinder
When a class implements a marker interface, then the object
of that class is given with a special behavior. For example
if a class implements remote interface(available in
java.rmi.* package) object of that class acts as a Remote
Object. For this reason java provides Marker Interface.
Is This Answer Correct ? | 7 Yes | 2 No |
Post New Answer View All Answers
What is files manifesting?
What is the string function?
Mention some interfaces implemented by linked list in java.
Can you have two constructors in java?
Explain the difference between jdk, jre, and jvm?
In java, how many ways you can take input from the console?
What do you understand by java virtual machine?
What is method overloading in JAVA? Why is it not present in C ?
What is a Null object?
What is binary tree in java?
How to access arraylist elements in java?
What are the characteristics of java?
What do you mean by a JVM?
When should you use arraylist and when should you use linkedlist?
How to stop a thread in java? Explain about sleep () method in a thread?