EJB MCQ Questions And Answers - Java Technologies
EJB MCQs : This section focuses on "basics" of EJB. These Multiple Choice Questions (MCQ) should be practiced to improve the EJB skills required for various interviews (campus interviews, walk-in interviews, company interviews), placements, entrance exams and other competitive examinations.
1. EJB stands for ?
A. Express Java Bean
B. Enterprise JS Bean
C. Enterprise Java Bean
D. Enterprise Java Business
View Answer
Ans : C
Explanation: EJB stands for Enterprise Java Bean. It is a server-side component to develop scalable, robust and secured enterprise applications in java.
2. How many types of enterprise bean in java?
A. 2
B. 3
C. 4
D. 5
View Answer
Ans : B
Explanation: There are three types of enterprise bean in java : Session Bean, Message Driven Bean and Entity Bean
3. ____________ encapsulates business logic.
A. Message Driven Bean
B. Entity Bean
C. Object Bean
D. Session Bean
View Answer
Ans : D
Explanation: Session Bean encapsulates business logic. It can be invoked by local, remote or web service client.
4. How many types of session bean?
A. 1
B. 2
C. 3
D. 4
View Answer
Ans : C
Explanation: There are 3 types of session bean: Stateless Session Bean, Stateful Session Bean and Singleton Session Bean
5. A Stateless session bean is a business object that doesn't maintain the conversational state with the client.
A. TRUE
B. FALSE
C. Can be true or false
D. Can not say
View Answer
Ans : A
Explanation: True, A Stateless session bean is a business object that doesn't maintain the conversational state with the client.
6. _____________ is a messaging service to create, send and receive messages asynchronously.
A. RMS
B. JMS
C. GDS
D. KAD
View Answer
Ans : B
Explanation: Java Message Service is a messaging service to create, send and receive messages asynchronously.
7. What are the advantages of JMS?
A. Asynchronous
B. Reliable
C. Both A and B
D. None of the above
View Answer
Ans : C
Explanation: Asynchronous and Reliable advantages of JMS.
8. In ___________, one message is delivered to one receiver only.
A. CTP Model
B. ATP Model
C. ZTP Model
D. PTP Model
View Answer
Ans : D
Explanation: In Point to Point model, one message is delivered to one receiver only. Here, Queue is used as a message-oriented middleware.
9. In which model, one message is delivered to all subscribers?
A. Publisher model
B. Subscriber model
C. Both A and B
D. None of the above
View Answer
Ans : C
Explanation: In the Publisher/Subscriber model, one message is delivered to all subscribers. Here, Topic is used as a message-oriented middleware.
10. Message Driven Bean (MDB) encapsulates business logic. It is invoked by passing the message. It is like JMS receiver.
A. TRUE
B. FALSE
C. Can be true or false
D. Can not say
View Answer
Ans : A
Explanation: True, Message Driven Bean (MDB) encapsulates business logic. It is invoked by passing the message. It is like JMS receiver.
Discussion