O'Reilly logo

Head First Servlets and JSP, 2nd Edition by Bert Bates, Bryan Basham, Kathy Sierra

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Coffee Cram: Mock Exam Chapter 5

  1. When using a RequestDispatcher, the use of which methods can often lead to an IllegalStateException? (Choose all that apply.)

    A.

    read

    B.

    flush

    C.

    write

    D.

    getOutputStream

    E.

    getResourceAsStream

  2. Which statements about ServletContext initialization parameters are true? (Choose all that apply.)

    A.

    They should be used for data that changes rarely.

    B.

    They should be used for data that changes frequently.

    C.

    They can be accessed using

    ServletContext.getParameter(String).

    D.

    They can be accessed using

    ServletContext.getInitParameter(String).

    E.

    They should be used for data that is specific to ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required