Multiple choice technology programming languages

Whats true for an entity bean provider using container-manaaged persistent relationship?

  1. Relationships can be one-to-one, one-to-many or many-to-many

  2. A get method return type can use java.util.map

  3. A remote interface is required for such a bean to have bi-directional relationship with another entity bean

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

Reveal answer Fill a bubble to check yourself
A Correct answer
Explanation

Container-managed relationships (CMR) in EJB 2.0 support one-to-one, one-to-many, and many-to-many relationships between entity beans. Get methods for relationships return java.util.Collection or java.util.Set, not Map. Remote interfaces are NOT required - local interfaces work fine. Entity beans can only have CMR relationships with other entity beans, not message-driven beans.