why are extending GenericServlet and why are extending
HttpServlet explain?
Answer Posted / dinesh goud
with out extending those servlets,we have to write all the methods in Servlet interface..............In order to write all the methods in Servlet interface.we go for extending GenericServlet and HttpServlet............
public UserServlet implemetns Servlet
{
provides bodies for all methods;
}
public UserServlet extends GenricServlet
{
provides bodies for methods ur wish and well
}
| Is This Answer Correct ? | 3 Yes | 3 No |
Post New Answer View All Answers
What is the life-cycle of servlets?
If servlet receives multiple requests, how many objects will it create?
What do you mean by request dispatcher in servlet?
What do you mean by servlet?
Why servlet is mostly used?
What are the phases of a servlet life cycle?
What are some disadvantages of storing session state in cookies?
What is servlet initializer?
What do you mean by filter in servlet?
What do you mean by interservlet communication?
What is the disadvantage of cookies?
What is a web application and what is it’s directory structure?
How httpservlet is different from the genericservlet?
What is the use of send redirect () method?
What do you mean by httpservlet?