J2Ee interview questions – page 2

35 questions. Tap “Show answer” to check yourself.

Advertisement
  1. How can a servlet call a JSP error page?

    1. This capability is not supported
    2. When the servlet throws the exception, it will automatically be caught by the calling JSP page
    3. The servlet needs to forward the request to the specific error page URL. The exception is passed along as an attribute named “javax.servlet.jsp.jspException”
    4. The servlet needs to redirect the response to the specific error page, saving the exception off in a cookie
    Show answer

    C. The servlet needs to forward the request to the specific error page URL. The exception is passed along as an attribute named “javax.servlet.jsp.jspException”

  2. Which of the following act as an interface between a component and the low level platform?

    1. Session Bean
    2. Entity Bean
    3. Container
    4. Applets
    Show answer

    C. Container

  3. Which of the following is not a feature of Message Driven Bean?

    1. It has no client visibility
    2. The container cannot pool instances
    3. It does not have a local or remote interface
    4. It is invoked asynchronously by the container
    Show answer

    B. The container cannot pool instances

  4. A JMS message producer is created by

    1. session
    2. connection
    3. destination
    4. industry
    Show answer

    A. session

  5. Which technology provides the flexibility to swap between XML processors with no application code changes?

    1. JAAS
    2. SAX
    3. XSLT
    4. JAXP
    Show answer

    D. JAXP

Advertisement