Home / CSE MCQs / EJB MCQs ::

CSE MCQs :: EJB MCQs

  1. Session beans don't have
  2. A.
    ejbCreate() method
    B.
    ejbStore() method
    C.
    ejbRemove() method
    D.
    None

  3. An entity bean's local interface MUST extend the ________ interface.
  4. A.
    javax.ejb.EJBLocalObject
    B.
    javax.ejb.EJBObject
    C.
    javax.ejb.RemoteObject
    D.
    None of the above

  5. Which component does the Entity bean represent the persistent data stored in the database?
  6. A.
    Server-side component
    B.
    Client-side component
    C.
    Server and client side component
    D.
    None of the above

  7. Which server-side component is required to be deployed on the server?
  8. A.
    EJB
    B.
    RMI
    C.
    Both A & B
    D.
    None of the above

  9. To expose a service through RMI, you have to create the service interface that extends
  10. A.
    java.rmi.Remote
    B.
    java.rmi.RemoteException
    C.
    All of the mentioned
    D.
    none of the mentioned

  11. OpenEJB 3.1.1 supports
  12. A.
    EJB 2.x components
    B.
    EJB 3.0 and EJB 3.1 components
    C.
    All of the mentioned
    D.
    None of the mentioned

  13. From the following APIs, which API does NOT guarantees to be supported by EJB 2.0 containers?
  14. A.
    JAXP
    B.
    JNDI
    C.
    JXTA
    D.
    JDBC

  15. What is returned by the method ejbCreate() CMP bean?
  16. A.
    Null
    B.
    Primary Key class
    C.
    Home Object
    D.
    Remote Object

  17. What executes EJB components?
  18. A.
    A web server
    B.
    An application server
    C.
    An EJB container
    D.
    A database server

  19. How can a EJB pass it's reference to another EJB ? Which of the following is correct syntax for an Abstract class?
  20. A.
    abstract double area() { }
    B.
    abstract double area()
    C.
    abstract double area();
    D.
    abstract double area(); { }