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
whats is statement and procedure
A user of a web application sees a jsessionid argument in the URL whenever a resource is accessed. What does this mean? a. The form must have the field jsessionid b. URL rewriting is used as the session method c. Cookies are used for managing sessions
How to determine SGA site?
Can you give me a simple example of using the requiredif validator rule?
What is a modular application?
What is message driven beam?
Why are my checkboxes not being set from on to off?
Why does the tag url-encode javascript and mailto links?
What does module-relative mean?
What is the purpose of the finally clause of a try-catch-finally statement?
how i secure my site with the https protocol.what are the steps?
Why is string immutable in java?
What is the relationship between an event-listener interface and an event-adapter class?
What is the difference between RMI registry and OS Agent?
What is re-entrant. Is session beans reentrant. Is entity beans reentrant?