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
How do you communicate in between Applets and Servlets?
What is Client-Server Computing?
Explain the differences between jsp and servlet.
Should I override the service() method?
What is the procedure for initializing a servlet?
How is the get () method different from the post() method?
If servlet receives multiple requests, how many objects will it create?
Define context initialization parameters.
Explains the differences between context.getrequestdispatcher() and request.getrequestdispatcher()?
Define declaration.
What is difference between the HTTP Servlet and Generic Servlet? Explain about their methods and parameters?
List some life cycle methods of a servlet.
Can you explain in detail 'javax.servlet' package?
How can the session in servlet be destroyed?
Why don't we write a constructor in a servlet?