Sail E0 Webinar

MCQs

Total Questions : 25 | Page 2 of 3 pages
Question 11. Which case of a session bean obtains the UserTransaction object via the EJBContext using the getUserTransaction() method in EJB transaction management?
  1.    Bean-managed transactions
  2.    Container-managed transactions
  3.    Both A & B
  4.    None of the above
 Discuss Question
Answer: Option A. -> Bean-managed transactions




Question 12. The Spring support classes facilitate building session beans
  1.    stateful session beans (SFSBs)
  2.    stateless session beans (SLSBs)
  3.    message-driven beans (MDBs)
  4.    All of the mentioned
 Discuss Question
Answer: Option D. -> All of the mentioned




Question 13. What happens when you pass a serialized object as an argument or return value that doesn't exist either in the Client or the Server?
  1.    Nothing will happpen
  2.    An error will occur
  3.    A run time exception is produced
  4.    None of these
 Discuss Question
Answer: Option C. -> A run time exception is produced




Question 14. Abbreviate the term JMS?
  1.    Java Message Service
  2.    Java Monitor Service
  3.    Java Message Session
  4.    Java Monitor Session
 Discuss Question
Answer: Option A. -> Java Message Service




Question 15. An different programming language like C ,C++ etc.
  1.    1,2
  2.    1
  3.    2
  4.    None
 Discuss Question
Answer: Option B. -> 1




Question 16. Session beans don't have
  1.    ejbCreate() method
  2.    ejbStore() method
  3.    ejbRemove() method
  4.    None
 Discuss Question
Answer: Option A. -> ejbCreate() method




Question 17. Which component does the Entity bean represent the persistent data stored in the database?
  1.    Server-side component
  2.    Client-side component
  3.    Server and client side component
  4.    None of the above
 Discuss Question
Answer: Option A. -> Server-side component




Question 18. Which server-side component is required to be deployed on the server?
  1.    EJB
  2.    RMI
  3.    Both A & B
  4.    None of the above
 Discuss Question
Answer: Option A. -> EJB




Question 19. An entity bean's local interface MUST extend the ________ interface.
  1.    javax.ejb.EJBLocalObject
  2.    javax.ejb.EJBObject
  3.    javax.ejb.RemoteObject
  4.    None of the above
 Discuss Question
Answer: Option A. -> javax.ejb.EJBLocalObject




Question 20. To expose a service through RMI, you have to create the service interface that extends
  1.    java.rmi.Remote
  2.    java.rmi.RemoteException
  3.    All of the mentioned
  4.    none of the mentioned
 Discuss Question
Answer: Option A. -> java.rmi.Remote




Latest Videos

Latest Test Papers