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 is the null?
Give me example of derived data types.
Define inheritance with reference to java.
Why do we override tostring method in java?
What about main() method in java ?
Why do we need hashset in java?
What are data structures in java?
Why generics are used in java?
java Technical questions asked by JPMC
What does jenkins do?
Why webdriver is an interface?
What is a pattern what is an anti pattern?
Explain runtime exceptions?
How will you calculate the depth of a binary tree if the tree contains 15 nodes?
What are register variables what are the advantages?