wood burning stoves 2.0*
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 Murach's Java Servlets and JSP this week in the Servlets 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
 
 
subject: Why HttpServlet is abstract ?
 
Similar Threads
interface is nothing but a pure abstract class. why interface does not has constructor
HttpServlet class
Why a class declared as Abstract, cannot have any abstract method declaration?
about Class AbstractCollection
why java's Object class not abstract ?