I'm currently preparing for the SCWCD certification and use the Whizlabs software for preparation.
I have a question to one of the questions from the software. The question is:
The ProcessServlet implements service(), doGet(), and doPost() methods and is mapped to the URL http://server/shopping/ProcessServlet. Which method is invoked when a user enters the above URL in the browser's address bar? Select one choice.
A) doPost() B) doGet() C) Depends on the browser vendor D) Cannot be determined based on the given information
I have selected answer D, but the software tells me that B is correct. I thought answer D is correct, because the service() method could also be overridden to always call doPost() or not?