Multiple choice technology web technology

Which two prevent a servlet from handling requests.? (Choose two.)

  1. The servlet's init method returns a non-zero status

  2. The servlet's init method throws a Servlet Exception

  3. The servlet's init method sets the Servlet Response's content type to null.

  4. The servlet's init method does NOT return within a time period defined by the servlet container

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

A servlet cannot handle requests if its init() method throws ServletException (makes servlet unavailable) or doesn't return within the container-defined timeout (considered failed initialization). A non-zero return status doesn't apply (init is void), and setting content type to null doesn't prevent initialization.