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 math in java?
Why stringbuffer is faster than string?
What is bufferedreader in java?
What is lazy programming?
What are the three types of design patterns?
Can we cast any other type to boolean type with type casting?
What are extraneous variables examples?
What is bubble sorting in java?
What is the maximum size of array in java?
What is the use of pattern in java?
What is reverse function?
What happens to a static var that is defined within a method of a class?
What is class forname?
What is an abstract method in java programming?
What is local variable and instance variable?