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


Please Help Members By Posting Answers For Below Questions

What is final access modifier in java?

849


What is the difference between declaration and definition in java?

768


what is the purpose of the runtime class?

816


What are the types of methods in java?

813


Why do we need variables?

747


What is object of class in java?

874


What is the base class of all classes?

782


How can we achieve thread safety in java?

929


What is a method vs function?

783


What is final keyword in java? Give an example.

797


Explain the difference between association, aggregation and inheritance relationships.

843


What is supplier in java?

806


How do you compare arrays in java?

726


Why is method overloading not possible by changing the return type in java?

807


How can the checkbox class be used to create a radio button?

791