why marker interfaces??
1 posts in topic
Flat View  Flat View
TOPIC ACTIONS:
 

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

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

thanx
amrita

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