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 is a memory leak in java?
What are the differences between heap and stack memory?
What is the requirement of thread in java?
What is passed by reference and pass by value ?
What is class level lock ?
What is the file type?
How does a for loop work java?
why Java does not support multiple inheritances?
Explain Basics of OOP Language in java
Can the interface be final?
Will minecraft java be discontinued?
When should you use arraylist and when should you use linkedlist?
What is the purpose of an interface?
List the different types of classloaders in java.
Why wait and notify methods are declared in object class?