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
I agree. Here's the link:
subject: Why HttpServlet is abstract ?
interface is nothing but a pure abstract class. why interface does not has constructor
why java's Object class not abstract ?
about Class AbstractCollection
Why a class declared as Abstract, cannot have any abstract method declaration?
All times are in JavaRanch time: GMT-6 in summer, GMT-7 in winter
| Powered by
Copyright © 1998-2015