O'Reilly logo

Head First EJB by Bert Bates, Kathy Sierra

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Coffee Cram: Mock Exam Answers

  1. What’s true for an entity bean provider using container-managed persistence to create persistent relationships? (Choose all that apply.)

    A.

    A local interface is required for such a bean to have a bidirectional relationship with another entity bean.

    B.

    Such a bean can have relationships with only session beans.

    C.

    Relationships can be only one-to-one or one-to-many.

    D.

    A getter method return type can be java.util.List.

    Note

    - must be Collection or Set

  2. What’s true for an entity bean provider using container-managed persistence to create persistent relationships? (Choose all that apply.)

    A.

    A remote interface is required for such a bean to have a bidirectional relationship with another entity bean.

    Note

    - must be local

    B.

    Such a bean can have relationships with only message-driven beans.

    C.

    A get method return type can use java.util.Map.

    Note

    - only Collection or Set

    D.

    Relationships ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required