• Post Reply Bookmark Topic Watch Topic
  • New Topic

marker interface  RSS feed

 
laxmidhar prad
Ranch Hand
Posts: 33
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
sir
can you tell me what is the markerinterface
 
Ulf Dittmer
Rancher
Posts: 42972
73
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
The Java Intermediate FAQ has a section on this, and if you search through the forums you'll find that this subject has been discussed numerous times.
 
laxmidhar prad
Ranch Hand
Posts: 33
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
sir please explain what is the markerinterface
 
Joanne Neal
Rancher
Posts: 3742
16
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Now that you have read the FAQ and searched the forums as suggested by Ulf, what don't you understand ?
 
subbarao N.V
Greenhorn
Posts: 13
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi

Marker Interface doent contain any methods.These interfaces like SingleThreadModel,EnterpriseBean. These Interfaces are use for some indications.While Running your programme(Servlet),If you want thread safe, the jvm checks are you implement the these interfaces or not.Like this we have several marker interfaces. Like this marker interfaces are using for indication(It Indicates some activity).

Thanks& Regards

Nunna Venkata Subbarao
 
Felx Devasia
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Marker interfaces, as per my understanding, are used to indicate your program that the class is expected to show some behaviour (for example, can be serialized if it impliments the serializable interface). Using reflection, you can get the name of the interface that implimented the class. This interface name is then verified to make sure whether the class should impliment certain functionality or not.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!