• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Which class does a servlet usually inherit from?

 
Anil Vupputuri
Ranch Hand
Posts: 527
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
??This might be simple question,but think before u answer??
Which class does a servlet usually inherit from?
what is it's Fully-qualified classname ?
(e.g. "java.lang.Thread")
<b>Anil</b>


 
Somas kanthan
Greenhorn
Posts: 8
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,
Servlets by normally extends javax.servlet.http.HttpServlet class, which is a sub class of javax.servlet.GenericServlet class
Hope this helps you,
 
Suraj Bhan Choudhary
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
hi..
The answer is 'javax.servlet.http.HttpServlet'
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic