Oracle
1Z0-899 · Question #37
Which code snippet specifies the metadata for a servlet with: (i) url mapping "/mytest"' (ii) Initial parameter with name "debug" and value "10"' (iii) Support asynchronous operation?
The correct answer is D. @WebServlet (urlPatterns = { / "mytest"}. See the full explanation below for the reasoning.
Question
Which code snippet specifies the metadata for a servlet with: (i) url mapping "/mytest"' (ii) Initial parameter with name "debug" and value "10"' (iii) Support asynchronous operation?
Options
- A@WebServlet("/mytest")
- B@WebServlet ("/myset")
- C@WebServlet (urlPatterns = { / "mytest"},
- D@WebServlet (urlPatterns = { / "mytest"},
- E@WebServlet (urlPatterns = { / "mytest"},
How the community answered
(60 responses)- A2% (1)
- B15% (9)
- C8% (5)
- D72% (43)
- E3% (2)
Community Discussion
No community discussion yet for this question.