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 the difference between compare and compareto in java?
What happens to the Exception object after handling an exception?
Why is serialization required?
Have you ever used hashtable and dictionary?
Why lambda expression is used in java?
Give few examples of final classes defined in Java API?
What is the difference between ArrayList and Vector? which one is better in Java
What are the types of java languages?
Why string is a class?
What is the java reflection api? Why it’s so important to have?
What does it mean that a method or field is “static”?
How to make object serializable in java?
How do you create an array in java?
What are default methods ?
Explain the difference between comparator and comparable in java?