why marker interfaces??
1 posts in topic
Flat View  Flat View

Posted By:   Anonymous
Posted On:   Tuesday, April 19, 2005 10:04 PM

can anyone tell me what is the actual need of marker interfaces? specially in details abt serializable interface
which also is a marker interface.


Re: why marker interfaces??

Posted By:   Jani_Kaarela  
Posted On:   Wednesday, April 20, 2005 12:00 AM

I guess the purpose of the java.io.Serializable marker interface is a) just what the term "marker interface" suggests: to mark a class serializable and possibly b) enabling under-the-hood code to refer to Serializables instead of Objects.

You can find more information on serialization in Sun's JDK docs (YMMV, refer to your particular JDK's docs).
About | Sitemap | Contact