Java Technology Home Page
A-Z Index

Java Developer Connection(SM)
Quizzes

Downloads, APIs, Documentation
Java Developer Connection
Tutorials, Tech Articles, Training
Online Support
Community Discussion
News & Events from Everywhere
Products from Everywhere
How Java Technology is Used Worldwide
Print Button
 
Quizzes Index

Enterprise JavaBeansTM Technology Fundamentals Quiz
By jGuru

What do you know about the Enterprise JavaBeans (EJB) API? Try this quiz and see what you learned from the EJB Technology Fundamentals Short Course.

Choose one answer for each question, then click Submit to see how you scored.


  1. What does the EJB specification architecture define?
     A. Transactional components
     B. Distributed object components
     C. Server-side components
     D. All of the above
  2. What executes EJB components?
     A. A web server
     B. An application server
     C. An EJB container
     D. A database server
  3. What do enterprise beans use to communicate with the EJB container to get runtime context information?
     A. The javax.ejb.EJBContext provided by the container
     B. A JNDI ENC context
     C. A javax.ejb.EJBHome object provided by the container
     D. A javax.ejb.EJBMetaData object provided by the container
  4. Through what interface does an application create, find, and remove enterprise beans?
     A. java.rmi.Remote
     B. javax.ejb.EJBHome
     C. javax.ejb.EJBObject
     D. javax.ejb.EntityBean
  5. What type of enterprise bean is used to embody business objects?
     A. javax.ejb.EnterpriseBean
     B. java.rmi.Remote
     C. javax.ejb.SessionBean
     D. javax.ejb.EntityBean
  6. What type of enterprise bean is used to embody application processing state information?
     A. javax.ejb.EnterpriseBean
     B. javax.rmi.Remote
     C. javax.ejb.SessionBean
     D. javax.ejb.EntityBean
  7. What interface must the enterprise bean implement so that an application can invoke its operations?
     A. javax.ejb.EntityBean
     B. javax.ejb.EJBHome
     C. javax.ejb.EJBObject
     D. javax.rmi.Remote
  8. At what point, precisely, in the life-cycle is a container-managed entity bean considered created?
     A. Immediately prior to the execution of its ejbCreate() method
     B. Immediately after the execution of its ejbCreate() method
     C. After the CMP bean's data has been committed to the underlying persistent datastore
     D. During the execution of its ejbPostCreate() method
  9. What distinguishes a bean-managed persistent (BMP) enterprise bean from a container-managed persistent (CMP) enterprise bean?
     A. A BMP bean must implement the ejbLoad() and ejbStore() methods
     B. A BMP bean can implement persistence to custom datastores such as legacy systems
     C. A BMP bean is responsible for managing its own persistence to a persistent datastore
     D. All of the above
  10. What is a deployment descriptor?
     A. An XML file format used by the container to learn about the attributes of a bean, such as transactional characteristics and access control
     B. A method for transporting enterprise beans back and forth between systems
     C. An XML file used by enterprise bean clients to learn about the attributes of a bean, such as access control and transactional characteristics.
     D. A format for bundling enterprise beans for delivery to customers


Print Button
[ This page was updated: 21-Sep-2000 ]
Products & APIs | Developer Connection | Docs & Training | Online Support
Community Discussion | Industry News | Solutions Marketplace | Case Studies
Glossary | Feedback | A-Z Index
For more information on Java technology
and other software from Sun Microsystems, call:
(800) 786-7638
Outside the U.S. and Canada, dial your country's AT&T Direct Access Number first.
Sun Microsystems, Inc.
Copyright © 1995-2000 Sun Microsystems, Inc.
All Rights Reserved. Terms of Use. Privacy Policy.