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


Please Help Members By Posting Answers For Below Questions

What is files manifesting?

1970


What is the string function?

753


Mention some interfaces implemented by linked list in java.

772


Can you have two constructors in java?

695


Explain the difference between jdk, jre, and jvm?

813


In java, how many ways you can take input from the console?

751


What do you understand by java virtual machine?

926


What is method overloading in JAVA? Why is it not present in C ?

802


What is a Null object?

1208


What is binary tree in java?

770


How to access arraylist elements in java?

709


What are the characteristics of java?

742


What do you mean by a JVM?

830


When should you use arraylist and when should you use linkedlist?

706


How to stop a thread in java? Explain about sleep () method in a thread?

805