nerdexam
Oracle

1Z0-899 · Question #46

When using Servlet asynchronous API if you want to dispatch the request back to a particular url - "/url" within the same Servlet Context which of the following API would you use?

The correct answer is B. AsyncContext.dispatch("/url"). AsyncContext Class, third paragraph)

Asynchronous Processing

Question

When using Servlet asynchronous API if you want to dispatch the request back to a particular url - "/url" within the same Servlet Context which of the following API would you use?

Options

  • AASyncContext.dispatch();
  • BAsyncContext.dispatch("/url");
  • CAsyncContext.dispatch(servletContext, "/url");
  • DAsyncContext.start(runnable);
  • ERequestDispatcher.fotward("/url");
  • FRequestDispatcher.forward(servletContext, "/url");
  • GRequestDispatcher.include("/url");

How the community answered

(27 responses)
  • B
    78% (21)
  • C
    4% (1)
  • E
    4% (1)
  • F
    4% (1)
  • G
    11% (3)

Explanation

AsyncContext Class, third paragraph)

Topics

#AsyncContext#dispatch API#async servlet#URL dispatch

Community Discussion

No community discussion yet for this question.

Full 1Z0-899 Practice