aspose file tools*
The moose likes Web Component Certification (SCWCD/OCPJWCD) and the fly likes Why HttpServlet is abstract ? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Spring in Action this week in the Spring forum!
JavaRanch » Java Forums » Certification » Web Component Certification (SCWCD/OCPJWCD)
Bookmark "Why HttpServlet is abstract ?" Watch "Why HttpServlet is abstract ?" New topic
Author

Why HttpServlet is abstract ?

Ganesh.P Ram
Ranch Hand

Joined: Dec 22, 2005
Posts: 41
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 ?


Ganesh
Steve Hicks
Greenhorn

Joined: Sep 22, 2005
Posts: 20
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)


SCJP 1.4, SCWCD 1.4
 
Don't get me started about those stupid light bulbs.
 
subject: Why HttpServlet is abstract ?