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
How do you clear an arraylist in java?
How do I compare two strings in word in java?
Explain different types of wrapper classes in java?
Is java a security risk?
Define an enumeration?
What is the difference between private & public & friendly classes?
How many functional interfaces does java 8 have?
What is a superclass?
What is the original name of java?
Can an unreferenced object be referenced again?
What are the parts of methodology?
Is void a data type?
Define max and min heap, also the search time of heap.
Explain what is encapsulation?
What about abstract classes in java?