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

Addition to previous section relative word 5th one was Putrid ans: rotten, also there was prob. in 1st section on bucket weight ans:10kg, also there was a prob. on train speed to find bridge length ans:800 mtrs.

1604


What is java util function?

512


What is nested interface?

518


What is equlas() and hashcode() contract in java? Where does it used?

607


Explain about java sdk?

578






How do you insert a line break?

494


What is a data structure java?

500


Explain the difference between extends thread vs implements runnable in java?

530


Why is string builder not thread safe?

591


Which data type is class in java?

549


What does it mean that a class or member is final?

559


What language is an assembler written in?

549


What is difference between public static and void?

480


what is server side caching?

1604


Is java call by value?

583