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
Explain the lifecycle of a servlet?
How do you get the ip address of the client in servlet?
Differentiate between the web server and application server?
How do you create a cookie using servlet?
What are different methods of session management in servlets?
Write a program to show the functionality of servlets.
What do you mean by request dispatcher in servlet? Also explain its methods.
Can filter be used as request or response?
Explain the servlet filter.
Why servlet is mostly used?
What are the different mode that servlets can be used?
What is api in servlet?
Explain the methods of request dispatcher in servlet?
What are different ways for authentication of servlet?
request parameter how to find whether a parameter exists in the request object?