Multiple choice technology programming languages

Which of the following statements about the entity bean are true?

  1. All entity bean instances of the same type (say CustomerBean) have the same Home, that is, an instance of an object that implements the home interface of this bean.

  2. A specific entity bean instance can be accessed by only one client at a time.

  3. If two clients wanted to access the same entity in the database concurrently, the container would make two entity bean instances to represent that entity.

  4. If two clients wanted to access the same entity in the database concurrently, the container would make one entity bean to represent that entity, and the two clients would get their own references to the same EJBObject correspondtwo clients would get their

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

All entity bean instances of the same type share the same Home object - this is a fundamental EJB design. When multiple clients access the same entity concurrently, the container doesn't create multiple bean instances (Option C is wrong). Instead, it creates multiple EJBObject references pointing to the same bean instance. This allows concurrent access while maintaining the single-entity representation.