nerdexam
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)
  • A
    2% (1)
  • B
    15% (9)
  • C
    8% (5)
  • D
    72% (43)
  • E
    3% (2)

Community Discussion

No community discussion yet for this question.

Full 1Z0-899 Practice