A friendly place for programming greenhorns!
Big Moose Saloon
Register / Login
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
It is sorta covered in the
JavaRanch Style Guide
subject: Why HttpServlet is abstract ?
why java's Object class not abstract ?
Why a class declared as Abstract, cannot have any abstract method declaration?
about Class AbstractCollection
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-2013