Entity Beans   «Prev  Next»

Finding Entity Bean - Quiz

Each question is worth one point. Select the best answer or answers for each question.
 
1. Which of the following statements regarding entity beans are true?
Please select all the correct answers.
  A. Entity bean clients have a one-to-one relationship with entity beans.
  B. Entity beans have a one-to-one relationship with the underlying data.
  C. When you delete the entity bean instance, the data it represents is deleted.
  D. Entity beans are discarded when the container crashes.

2. Which of the following statements are true for the primary key?
Please select all the correct answers.
  A. The primary key relates to the bean and not the underlying data.
  B. The primary key can be any valid Java class.
  C. The primary key can be found from the EJBObject.
  D. The primary key is used to find the bean instance.

3. What is the return from the findByPrimaryKey()?
Please select the best answer.
  A. The home object reference
  B. The EJBObject reference
  C. Void
  D. The primary key