(10110) Following is the code for doGet() and doPost() method of TestServlet. Which of the statement is correct?

(10110) Following is the code for doGet() and doPost() method of TestServlet.
Which of the statement is correct?





a. This will only work for HTTP GET requests
b. This will only work for HTTP POST requests
c. This will work for HTTP GET as well as POST requests.
d. It'll throw an exception at runtime, as you cannot call doGet() from doPost().
e. It'll throw an exception at runtime only if a POST request is sent to it.






Answer: C


Learn More :