Basic Java Multiple Choice Questions with Answers - 1

Question: 1

Which of the following is/are true about J2EE?

a. J2EE stands for Java 2 Enterprise Edition

b. J2EE is an environment for developing and deploying enterprise applications

c. J2EE specification is defined by Sun Microsystems Inc

d. The J2EE platform is one the best platform for the development and deployment of enterprise application.

(A) both a and b

(B) both a and c

(C) both a, b and c

(D) all

Ans: D

all

Question: 2

Which enterprise bean type is defined without any client view interfaces?

(A) Message Driven Bean

(B) BMP Entity bean

(C) Stateless Session bean

(D) Stateful Session bean

Ans: A

Message Driven Bean

Question: 3

Which of the following modifiers cannot be applied to a method?

(A) protected

(B) private

(C) public

(D) abstract

Ans: D

abstract

Question: 4

Which JDBC driver type is also referred as the java protocol?

(A) type 1 JDBC to ODBC protocol

(B) type 2 java 1 native code driver

(C) type 3 JDBC driver

(D) type 4 JDBC driver

Ans: C

type 3 JDBC driver

Question: 5

Which of the following is not a standard method called as part of the JSP life cycle?

(A) jspDestroy()

(B) jsp Init()

(C) jspService()

(D) jspservice()

Ans: D

jspservice()

Related Questions