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
Explain about thread synchronization inside a monitor?
When a thread blocks on i/o, what state does it enter?
To what value is a variable of the string type automatically initialized?
What restrictions are placed on the values of each case of a switch statement?
Name the eight primitive java types.
Define aop(assepct oriented programing)?
What do you need to set-up a cluster with jboss?
Name three component subclasses that support painting?
What is clustering? What are the different algorithms used for clustering?
Describe responsibilities of Activator?
Java is fully object oriented languages or not?
Why use POJO when I can use hashmap
What class is the top of the awt event hierarchy?
What value does read() return when it has reached the end of a file?
Name three subclasses of the component class?