Quiz

1:A CMP entity bean that is the target of a container-managed relationship must implement which one of the following interfaces?
  1. Local interfaces

  2. Remote interfaces

  3. Both local and remote interfaces

  4. None of the above

A1: A
2:Which of the following is a valid return type for a get method of a collection-valued container-managed relationship field?
  1. Collection of entity bean's local interfaces

  2. Collection of entity bean's remote interfaces

  3. Collection of entity bean's home interfaces

  4. Collection of entity bean's local home interfaces

A2: A
3:Which of the following statements is true for container-managed relationship fields?
  1. Container-managed relationship fields are virtual only.

  2. The bean provider writes the implementation of container-managed persistent ...

Get Sams Teach Yourself EJB in 21 Days now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.