Multiple choice technology programming languages

The exception-type element specifies an exception type and is used to handle exceptions generated from a servlet. Which element of the deployment descriptor includes the exception-type as a sub-element. Select the one correct answer.

  1. error-page

  2. servlet

  3. exception

  4. error-handling

Reveal answer Fill a bubble to check yourself
A Correct answer
Explanation

The exception-type element is used within the error-page element to specify which Java exception should trigger the error handling. When that exception is thrown, the container redirects to the specified location. The servlet element (option B) contains servlet configuration, not error handling. Elements named exception or error-handling (options C, D) are not standard deployment descriptor elements.