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 objects involved when a servlet receives a call from client?
What is MIME Type?
How httpservlet is different from the genericservlet?
How the servlet is loaded?
Why are servlets used?
Explain the difference between generic servlet and http servlet?
What is cookie? Why is cookie used?
What is called servlet container?
Which is the methods of generated servlet?
Does servlet have main method?
Write a simple servlet program to print the contents of html.
What is http servlet? Explain with the help of an example.
Difference between java beans & servlets?
What do you mean by session tracking and also explain its techniques?
What is the difference between using getSession(true) and getSession(false) methods?