why marker interfaces are there in java
Answer Posted / srinu
when class implements marker interface our class object
getting special behavoiur.
EX:-
suppose our class implements java.lang.Serializible
interface our class object getting special behaviour(our
class object converting java support format object to
network support)
Another Example our class implements java.rmi.Remote
interface our class object acts as Remote object.
| Is This Answer Correct ? | 3 Yes | 0 No |
Post New Answer View All Answers
What are wrapper classes in java?
what methods would you overwrite in java.lang.object class?
What are the restrictions imposed by a Security Manager on Applets?.
What are the advantages of encapsulation in java?
What is the purpose of abstract class?
What is the vector class in java programming?
Why is stringbuffer faster than string?
What is the do while loop syntax?
Can we define private and protected modifiers for the members in interfaces?
Outline the major features of java.
What is the difference between final, finally and finalize()?
How do you remove spaces in java?
What is the use of accept () method in java?
What does three dots mean in java?
What is serialversionuid?