Science, asked by mareeswaran8940, 1 year ago

How does one choose between overriding the doGet(), doPost(), and service() methods?

Answers

Answered by rjgolu
1
The differences between the doGet()and doPost() methods are that theyare called in the HttpServlet that your servlet extends by its service() methodwhen it recieves a GET or a POST request from a HTTP protocol request. ... The GenericServlet has a service() method that gets called when a client request is made.
Similar questions