Multiple choice technology programming languages

Which method exist in HttpServlet?

  1. doGet

  2. doTrace

  3. doOptions

  4. doError

Reveal answer Fill a bubble to check yourself
A,B,C Correct answer
Explanation

HttpServlet provides doGet(), doPost(), doHead(), doPut(), doDelete(), doOptions(), doTrace(), and do methods for other HTTP verbs. These are the standard service methods you override to handle specific HTTP request types. doError() is not a valid HttpServlet method - error handling is done through HttpServletResponse.sendError() or error-page configuration.