Hi can u pls tell me what is the use of marker interface.
Iknow what is marker interface but what ability will the
object get by implementing this.
Answer Posted / sowmya sreenivasan
Marker Interface is also called Tagging interface which are used as a boolean property of a class but actually doesnt require implementation of any methods.
eg:java.io.serializable interface.
The objects of the class implementing this interface are serializable objects.
Is This Answer Correct ? | 0 Yes | 0 No |
Post New Answer View All Answers
What is final access modifier in java?
What is the difference between declaration and definition in java?
what is the purpose of the runtime class?
What are the types of methods in java?
Why do we need variables?
What is object of class in java?
What is the base class of all classes?
How can we achieve thread safety in java?
What is a method vs function?
What is final keyword in java? Give an example.
Explain the difference between association, aggregation and inheritance relationships.
What is supplier in java?
How do you compare arrays in java?
Why is method overloading not possible by changing the return type in java?
How can the checkbox class be used to create a radio button?