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
When servlet is loaded?
How we can create war file in servlet?
What are the key methods that are involved in processing of http servlets?
List some life cycle methods of a servlet.
How to read request headers from servlets?
List out the difference between ServletConfig and ServletContext?
How to get the actual path of servlet in server?
How to get ip address in jsp login page and how to validate like 127.1.0.1 all should not be greater than 255
Which http method is said to be non-idempotent and idempotent?
Who is responsible to create the object of servlet?
Why are servlets used?
What are life cycle methods of a servlet?
Why is a constructor needed in a servlet even if we use the init method?
What is http servlet in java?
What is the advantage of Servlets when compared with other server side technologies?