Explain the methods in Generic and HTTP Servlets?

Answer Posted / guest

Generic servlets has service() method to handle requests

HttpServlet has doGet(),doPost(),doHead() mehtods

Is This Answer Correct ?    6 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Is it good idea to create servlet constructor?

747


What is cookies in servlet with example?

523


Why do we use sendredirect() method?

550


Explain the difference between jsp and servlet?

593


Differentiate between the print writer and servlet output stream?

565






How is a servlet implemented in code?

568


What is a java servlet?

558


What are important features of Servlet 3?

601


When a servlet accepts a call from a client, it receives two objects. What are they?

771


How to handle exceptions thrown by application with another servlet?

619


What’s the difference between genericservlet and httpservlet?

534


What is preinitialization of a servlet?

591


What is servlet used for?

700


What is pure servlet?

701


What do you mean by singlethreadmodel interface?

584