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 / sudheer

The interfaces with no defined methods act like markers. They just tell the compiler that the objects of the classes
implementing the interfaces with no defined methods need to be treated differently.
Example Serializable, clonable etc.

Is This Answer Correct ?    1 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What does  mean in regex?

778


What is bigger kb or mb?

794


Can we have any code between try and catch blocks?

754


What is treemap in java?

730


What language is pass by reference?

779


Why we used break and continue statement in java?

806


State some situations where exceptions may arise in java?

843


What is the properties class?

824


Is java pass by value or pass by reference?

757


What is stringjoiner ?

748


describe synchronization in respect to multithreading? : Java thread

715


Can inner class final?

874


Explain 5 features introduced in jdk 1.7?

813


What is method in java with example?

701


What does those terms actually mean included in the j.d.k i.6?

1819