dcsimg
what is the purpose of marker or tagged interface eventhoug there is methods to implement(like serializable interface)
2 posts in topic
Flat View  Flat View
TOPIC ACTIONS:
 

Posted By:   Mallikarjun_V
Posted On:   Wednesday, March 28, 2007 10:50 PM

what is the purpose of marker or tagged interface eventhoug there is methods to implement(like serializable interface)


Please use html tags to format code blocks.

Re: what is the purpose of marker or tagged interface eventhoug there is methods to implement(like serializable interface)

Posted By:   rahul123  
Posted On:   Monday, December 16, 2013 09:47 PM

It is a interface which does not contain any method and implementing these interface our object will get some ability such type of interface is called marker interface.
Internally JVM is responsible to provide  required ability. To reduce the complexity  of the programmer .

Example. Serializable Interface provide the support our object can able to travel across the network.

2. by implementing Cloneable interface we can create exactly copy of our object

Re: what is the purpose of marker or tagged interface eventhoug there is methods to implement(like serializable interface)

Posted By:   suhasini_s  
Posted On:   Friday, June 1, 2007 12:35 PM

In general tagged or marker interface is used to just identify the class, in real time projects there are so many classes,in order to identify which class belongs to which module,this tag or marker interface is useful.



Hope this helps




Thanks


Suhasini.S
About | Sitemap | Contact