why are extending GenericServlet and why are extending
HttpServlet explain?
Answer Posted / venu bandla
because be extending generic servlet we can access only
common methods of servlet interface,and we fourcefully
access the httpservlet methods by type casting the
servletRequest and ServletResponse objects into
httpServletRequest and HttpServletResponse.so this procedure
is not recommended because of redendent code.so we are
extending the HttpServlet class
| Is This Answer Correct ? | 1 Yes | 0 No |
Post New Answer View All Answers
What are the various ways of session supervision in servlets?
Explain the servlet filter.
Is servlet a controller?
How can we perform any action at the time of deploying the project?
What is a web application and what is it’s directory structure?
Why do we need a constructor in a servlet if we use the init method?
What is a deployment descriptor?
What is the use of httpservletrequestwrapper?
What are the uses of servlet
Write a program to show the functionality of servlets.
What are the exceptions thrown by servlets? Why?
When servlet object is created?
What is the difference between the http servlet and generic servlet?
What are the phases of servlet life cycle?
Explain the features are in servlet 3?