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

Difference between object instantiation and construction ?

578


what are the disadvantages of indexes in oracle?

1861


What is == and === in javascript?

553


What are the types of java?

599


What do you mean by scope of variable?

479






What is return code?

557


Can we call a non-static method from inside a static method?

556


What is an object’s lock and which object’s have locks?

502


What is independent and dependent variables in research?

466


Which is faster call by value or call by reference?

497


How does a for loop work java?

536


Can we print null in java?

567


Can we sort a map in java?

573


Which browsers work with java?

559


What is the difference between the direct buffer and non-direct buffer in java?

534