why are extending GenericServlet and why are extending
HttpServlet explain?

Answer Posted / nishidh soni

if the request from the is HTTP specific the we are extending HTTPServlet and if the request if from protocol independent then we are extending GenericServlet

Is This Answer Correct ?    0 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is ServletConfig object?

854


How to get the server information in a servlet?

915


Explain servlet.

812


What is life cycle of Servlet?

824


What are the different types of servlets?

774


What are sessions in servlets?

812


If my browser does not support cookie, and my server sends a cookie instance what will happen?

851


What is meant by a web application

785


What is the difference between servlet and filter?

741


What is difference between ServletResponse sendRedirect() and RequestDispatcher forward() method?

853


When Servlet is unloaded?

863


Why do you use session tracking in httpservlet?

869


What is difference between cookies and httpsession?

816


What is preinitialization of a servlet?

798


What is the use of request dispatcher interface?

795