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

What is a memory leak in java?

545


What are the differences between heap and stack memory?

543


What is the requirement of thread in java?

614


What is passed by reference and pass by value ?

580


What is class level lock ?

608






What is the file type?

552


How does a for loop work java?

538


why Java does not support multiple inheritances?

701


Explain Basics of OOP Language in java

588


Can the interface be final?

574


Will minecraft java be discontinued?

644


When should you use arraylist and when should you use linkedlist?

490


What is the purpose of an interface?

550


List the different types of classloaders in java.

501


Why wait and notify methods are declared in object class?

599