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

    View Answer

    Workspace

    Discuss Discuss in Forum


  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

    View Answer

    Workspace

    Discuss Discuss in Forum


  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

    View Answer

    Workspace

    Discuss Discuss in Forum


  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

    View Answer

    Workspace

    Discuss Discuss in Forum


  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

    View Answer

    Workspace

    Discuss Discuss in Forum


  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

    View Answer

    Workspace

    Discuss Discuss in Forum


  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

    View Answer

    Workspace

    Discuss Discuss in Forum


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

    View Answer

    Workspace

    Discuss Discuss in Forum


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

    View Answer

    Workspace

    Discuss Discuss in Forum


  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(); { }

    View Answer

    Workspace

    Discuss Discuss in Forum