Multiple choice technology web technology

When you pass a Remote object to or from a remote method,what is really passed?

  1. The Remote object reference

  2. The Remote object’s stub

  3. A local copy of the remote object

  4. None

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

When passing Remote objects to/from remote methods, the stub (proxy) is passed, not the actual remote object. The stub runs on the client side and communicates with the remote object via RMI. This is fundamental to how Java RMI works.