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 are the services in RMI ?
When a thread blocks on i/o, what state does it enter?
Do we need to override service() method
Do I have to use jsps with my application?
How to determine SGA site?
What you mean by COM and DCOM?
To identify IDL language what mapping mechanism is used?
Is jvm a overhead?
What are the different methods of identifying an object?
What must a class do to implement an interface?
Difference between swing and awt?
Explain ioc concept?
What is a tasks priority and how is it used in scheduling?
How are the elements of a borderlayout organized?
How would you detect a keypress in a jcombobox?