Java J2EE Multiple Choice Questions and Answers - 1

Question: 1

Choose the statement that best describes the relationship between JSP and servlets

(A) Servlets are built on JSP semantics and all servlets are compiled to JSP pages for runtime usage

(B) JSP and sevlets are unrelated technologies

(C) Servlets and JSP are competing technologies for handling web requests. Servlets are being superseded by JSP, which is preferred. The two technologies are not useful in combination

(D) JSPs are built on servlet semantics and all JSPs are compiled to servlets for runtime usage

Ans: D

JSPs are built on servlet semantics and all JSPs are compiled to servlets for runtime usage

Question: 2

Which of the following statements is NOT true about the Common Client Interface of JCA?

(A) CCI cannot connect to non relational systems

(B) CCI defines a set of interfaces and classes whose methods allow a client to perform typical data access operations

(C) A resource adapter is not required to provide support for the CCI

(D) CCI can connect to relational database systems

Ans: A

CCI cannot connect to non relational systems

Question: 3

Which of the following is not true in JMS point to point message domain?

(A) There is only one receiver

(B) The receiver can request a message

(C) The receiver must acknowledge the receipt of the message

(D) The receiver does not need to exist when the message is produced

Ans: B

The receiver can request a message

Question: 4

What will be the maximum size for a cookie?

(A) 1 KB

(B) 2 KB

(C) 3 KB

(D) 4 KB

Ans: D

4 KB

Question: 5

In JAAS, which of the following uses a CallbackHandler object?

(A) AuthPermission

(B) Policy

(C) Credential

(D) LoginModule

Ans: D

LoginModule

Related Questions