• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Why HttpServlet is abstract ?

 
Ganesh.P Ram
Ranch Hand
Posts: 41
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Any guesses as to why HttpServet class is abstract ?
None of the methods in the class are abstract. So why is the class abstract.
Is it bcos we shudnt instantiate the class ?
 
Steve Hicks
Greenhorn
Posts: 20
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I guess that HttpServlet class was made an abstract since it is not much use on it own.

You need to overwrite one method (normally doGet or doPost or both)
 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic