• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Generic Servlet,HttpServlet

 
rex tony
Ranch Hand
Posts: 159
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
How they call Generic Servlet,HttpServlet as an Abstract class?
 
Bear Bibeault
Author and ninkuma
Marshal
Pie
Posts: 65229
95
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
They don't. Why do you ask?
 
Pradipta Ghosh
Greenhorn
Posts: 7
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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??
 
William Brogden
Author and all-around good cowpoke
Rancher
Posts: 13074
6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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 ]
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic