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


Please Help Members By Posting Answers For Below Questions

When is the finally clause of a try-catch-finally statement executed?

488


What is the difference in between cpp and java? Can u explain in detail?

598


What are encapsulation, inheritance and polymorphism?

519


What is difference between word and integer?

586


What’s the difference between applets and standalone program?

522






How does compareto method work?

515


What are benefits of java?

548


Which package is imported by default?

621


When super keyword is used?

585


What is the major difference between linkedlist and arraylist?

502


What is the SimpleTimeZone class?

1786


Can a class have 2 constructors?

488


How does system arraycopy work in java?

573


How many bits is a double?

522


What are synchronized methods and synchronized statements in java programming?

564