Why does most servlets extend HttpServlet?
Answer Posted / dhiraj
All servlet classes extend the HttpServlet abstract class.
HttpServlet simplifies writing HTTP servlets by providing a
framework for handling the HTTP protocol. Because
HttpServlet is abstract, your servlet class must extend it
and override at least one of its methods. An abstract class
is a class that contains unimplemented methods and cannot be
instantiated itself.
| Is This Answer Correct ? | 4 Yes | 5 No |
Post New Answer View All Answers
What is the difference between a static and a non-static inner class?
For which statements does it make sense to use a label?
How database connectivity in XML is achieved?
Why a client should be multithreading? Explain.
What is the highest-level event class of the event-delegation model?
What are the design considerations while making a choice between using interface and abstract class?
What are local interfaces? Describe.
Difference between DurableSubscription and non- DurableSubscription?
How to implement dphibernate to activate lazy loading in Flex with java ?thanx in advance!
what is Activation Instantinator?
What is the difference between the ‘font’ and ‘fontmetrics’ class?
When is the best time to validate input?
What is TL and its use?
Can I use javascript to submit a form?
What restrictions are placed on the location of a package statement within a source code file?