Meaningless Drivel is fun!
The moose likes Servlets and the fly likes Generic Servlet,HttpServlet Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Servlets
Bookmark "Generic Servlet,HttpServlet" Watch "Generic Servlet,HttpServlet" New topic

Generic Servlet,HttpServlet

rex tony
Ranch Hand

Joined: Aug 29, 2007
Posts: 159
How they call Generic Servlet,HttpServlet as an Abstract class?
Bear Bibeault
Author and ninkuma

Joined: Jan 10, 2002
Posts: 63844

They don't. Why do you ask?

[Asking smart questions] [About Bear] [Books by Bear]
Pradipta Ghosh

Joined: Nov 03, 2007
Posts: 7
They don't.

In the book HeadFirst Servlet & JSP, authors described the GenericServlet class & HttpServlet class as abstract class (Page 98). Can you please explain??

Pradipta Kumar Ghosh
William Brogden
Author and all-around good cowpoke

Joined: Mar 22, 2000
Posts: 13036
Whats to explain? Look at the API!

You will never have a reason to try to create an instance of either one anyway. A servlet programmer has to extend HttpServlet to accomplish anything.

(ps that is abstract, not Abstract - remember, Java is case sensitive)

[ November 16, 2007: Message edited by: William Brogden ]
I agree. Here's the link:
subject: Generic Servlet,HttpServlet
It's not a secret anymore!