Multiple choice

Which of the following is an incorrect statement about servlet programming?

  1. SC_FORBIDDEN method produces predefined error messages like HTTP error 403.

  2. We can send a custom error message for the error message in SC_FORBIDDEN method.

  3. HttpServletResponse allows to send the error message in the servlet code.

  4. HtttpServletResponse interface provides protocol specific methods.

  5. There can be many objects of a servlet created for a request.

Reveal answer Fill a bubble to check yourself
E Correct answer
Explanation

Only one object is created at the time of first request by servlet or web container.