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
When is the finally clause of a try-catch-finally statement executed?
What is the difference in between cpp and java? Can u explain in detail?
What are encapsulation, inheritance and polymorphism?
What is difference between word and integer?
What’s the difference between applets and standalone program?
How does compareto method work?
What are benefits of java?
Which package is imported by default?
When super keyword is used?
What is the major difference between linkedlist and arraylist?
What is the SimpleTimeZone class?
Can a class have 2 constructors?
How does system arraycopy work in java?
How many bits is a double?
What are synchronized methods and synchronized statements in java programming?