Top 150+ J2EE MCQ Questions and Answers 2020-2021 - 2
Question: 6
How can a servlet call a JSP error page?
(A) This capability is not supported
(B) When the servlet throws the exception, it will automatically be caught by the calling JSP page
(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”
(D) The servlet needs to redirect the response to the specific error page, saving the exception off in a cookie
Ans: 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”
Question: 7
Which of the following act as an interface between a component and the low level platform?
(A) Session Bean
(B) Entity Bean
(C) Container
(D) Applets
Ans: C
Container
Question: 8
Which of the following is not a feature of Message Driven Bean?
(A) It has no client visibility
(B) The container cannot pool instances
(C) It does not have a local or remote interface
(D) It is invoked asynchronously by the container
Ans: B
The container cannot pool instances
Question: 9
A JMS message producer is created by
(A) session
(B) connection
(C) destination
(D) industry
Ans: A
session
Question: 10
Which technology provides the flexibility to swap between XML processors with no application code changes?
(A) JAAS
(B) SAX
(C) XSLT
(D) JAXP
Ans: D
JAXP
GATE Chemical Engineering Questions and Answers More
GATE 2024-2025 Question Paper Pdf Download More
Banking Awareness Questions 2024-2025 More
Computer Quiz Questions for Bank Exams More
Computer Quiz Questions for Bank Exams More
Java Applet Interview Questions and Answers Pdf More
Top 100+ Gupta Empire General Knowledge Questions and Answers More
1000+ DBMS Question Bank with Answers Pdf More
1000+ Irrigation Engineering MCQ Questions and Answers Pdf More
1000+ Chemical Engineering Mass Transfer MCQ Questions & Answers Pdf More