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
You're given a Boolean 2D matrix, can you find the number of islands?
What is a class in java?
What is Major and importance difference between for and foreach loop ?
How objects are stored in java?
Is array dynamic in java?
What is appletviewer?
How many types of methods are there?
What are the different types of sorting in java?
What are multiple inheritances? Is it supported by java?
What is abstract class constructor called?
How do you create a reference in java?
What does \ mean in regex?
What happens if we don’t define serial version uid?
What is the difference between I ++ and ++ I in java?
How does a cookie work in Servlets?