why are extending GenericServlet and why are extending
HttpServlet explain?

Answer Posted / srikanth reddy

interface servlet
{
7 abstract methods
}
generic servlet extends servlet{
it override 6 above abstract methods except service method
}
httpservlet extends generic servlet
{
it hsa 7 methods and 2 service methods in this servlet

Is This Answer Correct ?    3 Yes 6 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What are the type of protocols used in httpservlet?

608


How do you find out what client machine is making a request to your servlet

526


What is the difference between the include() and forward() methods?

565


How do we go with database connection and log4j integration in servlet?

692


How do we translate jsp?

563






How can we perform any action at the time of deploying the project?

618


Difference between doget and dopost?

677


What exactly is a servlet?

537


How do you deal property files in servlet?

595


What is httpservlet and how it is different from genericservlet?

596


How a servlet is unloaded?

585


What is difference between the HTTP Servlet and Generic Servlet? Explain about their methods and parameters?

608


What is meant by cookies?

604


If some new data has entered the database, explain how can a servlet refresh automatically?

727


What is the difference between servlet and jsp?

592