Coffee Cram: Mock Exam Chapter 14

  1. Given this list of attributes:

    - related to Intercepting Filter

    - supports role separation between developers

    - adds reusability

    Which design pattern is being described?

    A.

    Transfer Object

    B.

    Service Locator

    C.

    Front Controller

    D.

    Business Delegate

  2. The design of your web application calls for certain security measures to be taken for every request received. Some of these security checks will be applied, regardless of the type of request.

    Which design pattern can be used to achieve this design requirement?

    A.

    Transfer Object

    B.

    Service Locator

    C.

    Composite Entity

    D.

    Business Delegate

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

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.