Why use RequestDispatcher to forward a request to another resource, instead of using a sendRedirect?

  1. Redirects are no longer supported in the current servlet API.

  2. Redirects are not a cross-platform portable mechanism.

  3. The RequestDispatcher does not use the reflection API.

  4. The RequestDispatcher does not require a round trip to the client, and thus is more efficient and allows the server to maintain request state.


Correct Option: D

Find more quizzes: