Top 80+ Solved J2EE Technologies MCQ Questions Answer
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
Q. Which of the following is not a feature of Beans?
a. Introspection
b. Events
c. Persistence
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
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
Q. A message driven bean is like a stateful session bean that encapsulates the business logic and doesn't maintain state.
a. True
b. False
c. none
d. all
Q. Abbreviate the term JMS?
a. Java Message Service
b. Java Monitor Service
c. Java Message Session
d. Java Monitor Session
Q. JMS is mainly used to send and receive message from one application to another.
a. True
b. False
c. none
d. all
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
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
Q. EJB is a specification for J2EE server, not a product; Java beans may be a graphicalcomponent in IDE.
a. True
b. False
c. none
d. all
Q. A session bean represents a multiple clients inside the Application Server.
a. True
b. False
c. none
d. all
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
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