Top 80+ Solved J2EE Technologies MCQ Questions Answer

From 16 to 30 of 100

Q. Which of the following is correct error when loading JAR file with duplicate name?

a. javio.NullPointerException

b. java.lang.ClassNotFound

c. java.lang.ClassFormatError

d. java.lang.DuplicateClassError

  • c. java.lang.ClassFormatError

Q. Java Beans are extremely secured?

a. True

b. False

c. none

d. all

  • b. False

Q. Which of the following is not a feature of Beans?

a. Introspection

b. Events

c. Persistence

d. Serialization

  • d. Serialization

Q. Which services are provided to EJB components by the EJB container?

a. Transaction support

b. Persistence support

c. Naming support

d. All mentioned above

  • d. All mentioned above

Q. Which case of a session bean obtains the UserTransaction object via the EJBContext using the getUserTransaction() method in EJB transaction management?

a. Bean-managed transactions

b. Container-managed transactions

c. Both A & B

d. None of the above

  • a. Bean-managed transactions

Q. Abbreviate the term JMS?

a. Java Message Service

b. Java Monitor Service

c. Java Message Session

d. Java Monitor Session

  • a. Java Message Service

Q. Which session bean maintain their state between client invocations but are not required to maintain their state across server crashes or shutdowns?

a. Stateful Session Bean

b. Stateless Session Bean

c. Singleton Session Bean

d. None of the above

  • c. Singleton Session Bean

Q. Which EJB container must provide an implementation of Java Naming and Directory Interface (JNDI) API to provide naming services for EJB clients and components?

a. Transaction support

b. Persistence support

c. Naming support

d. All mentioned above

  • c. Naming support

Q. Which component does the Entity bean represent the persistent data stored in thedatabase?

a. Server-side component

b. Client-side component

c. server and client side component

d. None of the above

  • a. Server-side component

Q. EJB is like COM, Abbreviate the term COM?

a. Component Object Model

b. Component Oriented Model

c. Common Object Model

d. Common Oriented Model

  • a. Component Object Model
Subscribe Now

Get All Updates & News