| |
GeekInterview.com > Interview Questions > J2EE > Core Java
| Print | |
Question: Marker Interface
Answer: When there is no methods in the marker interface, then what is the use of marker interface. What is the functionality of the interface. Why do we need to implement marker interface? |
| August 08, 2009 03:46:32 |
#2 |
| Sarje |
Member Since: August 2009 Total Comments: 29 |
RE: Marker Interface |
| Mraker interfaces are used to tag (mark) a class that the class possess a particular behaviour. For example to save the sate of an object the class must mark with (or implement) the java.io.Serializable. |
| |
Back To Question | |