A friendly place for programming greenhorns!
Big Moose Saloon
Register / Login
Win a copy of
EJB 3 in Action
this week in the
EJB and other Java EE Technologies
Web Component Certification (SCWCD/OCPJWCD)
Why HttpServlet is abstract ?
Joined: Dec 22, 2005
Apr 15, 2006 12:56:00
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 ?
Joined: Sep 22, 2005
Apr 15, 2006 14:08:00
I guess that
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
I agree. Here's the link:
subject: Why HttpServlet is abstract ?
about Class AbstractCollection
why java's Object class not abstract ?
Why a class declared as Abstract, cannot have any abstract method declaration?
interface is nothing but a pure abstract class. why interface does not has constructor
All times are in JavaRanch time: GMT-6 in summer, GMT-7 in winter
| Powered by
Copyright © 1998-2014