Multiple choice technology programming languages

Which of the following statements are true about a session bean client?

  1. A local client can remove the bean by invoking a method on the home interface

  2. Only a remote client can use the remove() method in the component interface.

  3. A stateful session bean is created by the container when the client invokes a create() method on the home interface.

  4. A create call from a client on a stateless session bean may not result in creating any instance of the bean. The container can create stateless session bean instances before any call from the client.

  5. A remove call from a client on a stateless session bean instance results in removing the instance.

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

A stateful bean is instantiated when the client calls create on its home interface, and a stateless bean’s create call may not result in a new instance because the container can pool instances. The other statements misstate removal semantics or client capabilities.