Home / CSE MCQs / EJB MCQs ::

CSE MCQs :: EJB MCQs

  1. Choose different kinds of enterprise beans in EJB from following
  2. A.
    Session beans
    B.
    Entity beans
    C.
    Message-driven beans
    D.
    All of the above

  3. At what point, precisely, in the life-cycle is a container-managed entity bean considered created?
  4. 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

  5. Which middleware services are provided by EJB?
  6. A.
    Security
    B.
    Transaction Management
    C.
    Both A & B
    D.
    None of the above

  7. For remote objects Java passes objects:
  8. A.
    By reference
    B.
    By object copy
    C.
    By producing a serialized copy
    D.
    B and C are correct

  9. remove() method of the Entity bean?
  10. A.
    Remove the row of table from the database
    B.
    Remove the instance from pool
    C.
    Delete the TABLE from the database
    D.
    None of the above