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


Please Help Members By Posting Answers For Below Questions

How are the elements of a gridbaglayout organized in java programming?

768


Write a program to find the whether a number is an Armstrong number or not?

800


What is the difference between class & structure?

822


When should I use stringbuffer?

799


Differentiate between nested and inner class in java.

794


What happens if I remove static from main method?

788


What are the differences between throw and throws?

861


What are void pointers?

1010


What is Mutex (Mutual Exclusion Object) ?

876


What is data type example?

768


What environment variables do I need to set on my machine in order to be able to run java programs?

817


Explain the difference between map and flatmap stream operation?

1056


What are the data types supported by java?

779


What is the biggest integer?

833


What does @param args mean in java?

840