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


Please Help Members By Posting Answers For Below Questions

what is an isolation level?

2484


What is clustering? What are the different algorithms used for clustering?

837


Define prototype?

841


What is table mutation and how do you avoid it?

2179


What is an abstract method?

830


How many times may an objects finalize() method be invoked by the garbage collector?

900


What is a class loader? What are the different class loaders used by jvm?

858


Which container method is used to cause a container to be laid out and redisplayed?

919


How to determine SGA site?

2204


What is the difference between static and non-static with examples?

1642


What is Stream Tokenizer?

2000


Do we need to override service() method

1436


What is the difference between RMI and Corba?

2525


What are the sequence of steps to write pub or sub model kind of application?

2262


What is the diffrence between a local-tx-datasource and a xa-datasource?

842