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
How can an existing session be invalidated?
What do you mean by the servlet chaining?
How do we call one servlet from another servlet?
How to rectify errors in java servlet while compilation?
Difference between httpservlet and generic servlets?
What do you mean by default initialization in java servlet?
What is Servlets and explain the advantages of Servlet life cycle?
What is the need of session tracking in web application?
Explain servlet.
What are the uses of servlets?
What is servlet and its types?
What is cgi?
If a servlet is not properly initialized, what exception may be thrown?
What is the dispatcher servlet?
How do we go with database connection and log4j integration in servlet?