Multiple choice technology programming languages

Assuming L and R are the local and remote clients for session bean B, which of the following are true statements?

  1. L can pass its reference for B as a return value of a method call from R.

  2. R can pass its reference for B as a parameter in a method call to L.

  3. L cannot call methods on R. Doesn’t this depend on what R actually is, and where it is located

  4. L cannot call methods on B.

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

In EJB, remote references (R) can be passed to local clients (L) because remote interfaces are designed for network serialization. However, local references (L) cannot be passed to remote clients - local interfaces are not serializable and exist only within the same JVM. Option C correctly notes that whether L can call methods on R depends on R's actual type and location - this isn't about the local/remote client distinction but about the specific object being referenced. L can always call methods on B since that's its designated session bean.