• Post Reply Bookmark Topic Watch Topic
  • New Topic

Which class does a servlet usually inherit from?  RSS feed

 
sachin dabhade
Ranch Hand
Posts: 73
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
hi everybody,
i have following doubt :
Which class does a servlet usually inherit from?
thank you
sachin
 
Gerry Giese
Ranch Hand
Posts: 247
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
"Servlet" is an interface.
"GenericServlet" inherits from "Object" and implements "Servlet".
"HttpServlet" inherits from "GenericServlet".
You can read the J2EE API documentation at http://java.sun.com/j2ee/j2sdkee/techdocs/api/index.html for more information. If that doesn't answer you question, go to java.sun.com and look for tutorials on J2EE and/or servlets.
 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!