Oracle
1Z0-899 · Question #68
Which two prevent a servlet from handling requests? (Choose two.)
The correct answer is B. The servlet's init method throws a ServletException. E. The servlet's init method does NOT return within a time period defined by the servlet container. See the full explanation below for the reasoning.
Question
Which two prevent a servlet from handling requests? (Choose two.)
Options
- AThe servlet's init method returns a non-zero status.
- BThe servlet's init method throws a ServletException.
- CThe servlet's init method sets the ServletResponse's content length to 0.
- DThe servlet's init method sets the ServletResponse's content type to null.
- EThe servlet's init method does NOT return within a time period defined by the servlet container.
How the community answered
(44 responses)- A16% (7)
- B70% (31)
- C9% (4)
- D5% (2)
Community Discussion
No community discussion yet for this question.