Win a copy of Programmer's Guide to Java SE 8 Oracle Certified Associate (OCA) this week in the OCAJP forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

What is difference between Servlet and GenericServlet?

 
Deepthi Tanguturi
Greenhorn
Posts: 17
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
What is difference between Servlet and GenericServlet?
 
Gopakumar Naryanan
Ranch Hand
Posts: 72
Eclipse IDE Hibernate Tomcat Server
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi deepthi,

Servlet is an interface and GenericServlet is an abstract class .
GenericServlet implements Servlet interface and ServletConfig interface but it doesn't provide body for service() method.


Thanks
Gopakumar
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic