Why does most servlets extend HttpServlet?
Answer Posted / surajkumar.java
Yes, HttpServlet simplifies the handling of HTTP protocol but there is no hard and fast rule that the servlet class must extend abstract HttpServlet class. it may extend GenericServlet class to make the Servlet protocol independent.
Is This Answer Correct ? | 8 Yes | 1 No |
Post New Answer View All Answers
what is an isolation level?
What is clustering? What are the different algorithms used for clustering?
Define prototype?
What is table mutation and how do you avoid it?
What is an abstract method?
How many times may an objects finalize() method be invoked by the garbage collector?
What is a class loader? What are the different class loaders used by jvm?
Which container method is used to cause a container to be laid out and redisplayed?
How to determine SGA site?
What is the difference between static and non-static with examples?
What is Stream Tokenizer?
Do we need to override service() method
What is the difference between RMI and Corba?
What are the sequence of steps to write pub or sub model kind of application?
What is the diffrence between a local-tx-datasource and a xa-datasource?