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 are the elements of a gridbaglayout organized in java programming?
Write a program to find the whether a number is an Armstrong number or not?
What is the difference between class & structure?
When should I use stringbuffer?
Differentiate between nested and inner class in java.
What happens if I remove static from main method?
What are the differences between throw and throws?
What are void pointers?
What is Mutex (Mutual Exclusion Object) ?
What is data type example?
What environment variables do I need to set on my machine in order to be able to run java programs?
Explain the difference between map and flatmap stream operation?
What are the data types supported by java?
What is the biggest integer?
What does @param args mean in java?