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
What does mean in regex?
What is bigger kb or mb?
Can we have any code between try and catch blocks?
What is treemap in java?
What language is pass by reference?
Why we used break and continue statement in java?
State some situations where exceptions may arise in java?
What is the properties class?
Is java pass by value or pass by reference?
What is stringjoiner ?
describe synchronization in respect to multithreading? : Java thread
Can inner class final?
Explain 5 features introduced in jdk 1.7?
What is method in java with example?
What does those terms actually mean included in the j.d.k i.6?