my dog learned polymorphism*
The moose likes Servlets and the fly likes doubt with generic servlet Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Java » Servlets
Bookmark "doubt with generic servlet" Watch "doubt with generic servlet" New topic

doubt with generic servlet

yuvraj kotegar
Ranch Hand

Joined: Jul 31, 2008
Posts: 120
i just saw the code for generic servlet. it doesnt have any methods which are abstract in it. all hve method bodies.

but what made the developers to mark it abstarct??
Bear Bibeault
Author and ninkuma

Joined: Jan 10, 2002
Posts: 60782

The Servlet Specification requires it to be abstract.

Since it makes no sense to instantiate a non-extended servlet, both GenericServlet and HttpServlet are abstract.

[Asking smart questions] [Bear's FrontMan] [About Bear] [Books by Bear]
yuvraj kotegar
Ranch Hand

Joined: Jul 31, 2008
Posts: 120
Thanks for the quick reply sir
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
subject: doubt with generic servlet
Similar Threads
generic servlet and http servlet
Generic Servlet,HttpServlet