J2Ee interview questions – page 2
35 questions. Tap “Show answer” to check yourself.
Advertisement
-
How can a servlet call a JSP error page?
- This capability is not supported
- When the servlet throws the exception, it will automatically be caught by the calling JSP page
- 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”
- 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”
-
Which of the following act as an interface between a component and the low level platform?
- Session Bean
- Entity Bean
- Container
- Applets
Show answer
C. Container
-
Which of the following is not a feature of Message Driven Bean?
- It has no client visibility
- The container cannot pool instances
- It does not have a local or remote interface
- It is invoked asynchronously by the container
Show answer
B. The container cannot pool instances
-
A JMS message producer is created by
- session
- connection
- destination
- industry
Show answer
A. session
-
Which technology provides the flexibility to swap between XML processors with no application code changes?
- JAAS
- SAX
- XSLT
- JAXP
Show answer
D. JAXP
Advertisement