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 purpose of the wait(), notify(), and notifyall() methods?
Why do threads block on i/o?
How to determine SGA site?
What is the difference between a menuitem and a checkboxmenuitem?
What is the relation between the infobus and rmi?
Why does the tag url-encode javascript and mailto links?
Is there a guarantee of uniqueness for entity beans?
What are the call back methods in entity bean?
When a thread blocks on i/o?
What is an abstract method?
Java is fully object oriented languages or not?
What are the benefits of detached objects?
whats is mean by connectionpooling
Can you control when passivation occurs?
What is bean? Where can it be used?