aspose file tools*
The moose likes Servlets and the fly likes What is difference between Servlet and GenericServlet? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Servlets
Bookmark "What is difference between Servlet and GenericServlet?" Watch "What is difference between Servlet and GenericServlet?" New topic
Author

What is difference between Servlet and GenericServlet?

Deepthi Tanguturi
Greenhorn

Joined: Sep 06, 2011
Posts: 17
What is difference between Servlet and GenericServlet?
Gopakumar Naryanan
Ranch Hand

Joined: Jan 15, 2011
Posts: 72

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


Thanks & Regards
Gopakumar
 
Consider Paul's rocket mass heater.
 
subject: What is difference between Servlet and GenericServlet?