• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Liutauras Vilda
  • Jeanne Boyarsky
  • Devaka Cooray
  • Paul Clapham
Sheriffs:
  • Tim Cooke
  • Knute Snortum
  • Bear Bibeault
Saloon Keepers:
  • Ron McLeod
  • Tim Moores
  • Stephan van Hulst
  • Piet Souris
  • Ganesh Patekar
Bartenders:
  • Frits Walraven
  • Carey Brown
  • Tim Holloway

marker interface

 
Ranch Hand
Posts: 33
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
sir
can you tell me what is the markerinterface
 
Rancher
Posts: 43009
76
  • 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
 
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 ?
 
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
 
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.
 
Consider Paul's rocket mass heater.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!