aspose file tools*
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
Author

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
Marshal

Joined: Jan 10, 2002
Posts: 60059
    
  65

They don't. Why do you ask?


[Asking smart questions] [Bear's FrontMan] [About Bear] [Books by Bear]
Pradipta Ghosh
Greenhorn

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
Rancher

Joined: Mar 22, 2000
Posts: 12682
    
    5
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.

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

[ November 16, 2007: Message edited by: William Brogden ]

Java Resources at www.wbrogden.com
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Generic Servlet,HttpServlet
 
Similar Threads
help me
HttpServlet and GenericServlet
servlets
difference between Generic servlet & Httpservlet
diff b/w generic servlet and http servlet