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 RMI and Socket?
What is a clone?
How to implement dphibernate to activate lazy loading in Flex with java ?thanx in advance!
What is the relation between the infobus and rmi?
Explain the advantages and disadvantages of detached objects.
What’s jboss cache in short?
What are the steps to write p-to-p model application?
What is the diffrence between a local-tx-datasource and a xa-datasource? Can you use transactions in both?
What are the oops concept?
What is meant by method chaining?
What are the services in RMI ?
What is colon_pkg_prefixes and what is its use?
What are the diff types of exception?
Difference between loadclass and class.forname?
What is bean? Where can it be used?