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
Describe responsibilities of Activator?
What are the sequence of steps to write pub or sub model kind of application?
Explain the different types of memory used by jvm?
What state does a thread enter when it terminates its processing?
When a thread blocks on i/o?
Are we allowed to change the transaction isolation property in middle of a transaction?
what are memory considerations of jsp compares to other web components?
int x=5,i=1,y=0; while(i<=5) { y=x++ + ++x; i=i+2; } System.out.println(x); System.out.println(y); System.out.println(i); How to solve this? Please explain!
What is the relation between the infobus and rmi?
What is the purpose of the finally clause of a try-catch-finally statement?
What happens when a thread cannot acquire a lock on an object?
How is a java object message delivered to a non-java client?
Difference between DurableSubscription and non- DurableSubscription?
Is the ternary operator written x : y ? Z or x ? Y : z ?
Describe, in general, how java's garbage collector works?