Coffee Cram: Mock Exam Chapter 13

  1. Which are true about filters? (Choose all that apply.)

    A.

    A filter can act on only the request or response object, not both.

    B.

    The destroy method is always a container callback method.

    C.

    The doFilter method is always a container callback method.

    D.

    The only way a filter can be invoked is through a declaration in the DD.

    E.

    The next filter in a filter chain can be specified either by the previous filter or in the DD.

  2. Which are true about declaring filters in the DD? (Choose all that apply.)

    A.

    Unlike servlets, filters CANNOT declare initialization parameters.

    B.

    Filter chain order is always determined by the order the elements appear in the DD.

    C.

    A class that extends an API request ...

Get Head First Servlets and JSP, 2nd Edition now with O’Reilly online learning.

O’Reilly members experience live online training, plus books, videos, and digital content from 200+ publishers.