This week's giveaway is in the Android forum.
We're giving away four copies of Android Security Essentials Live Lessons and have Godfrey Nolan on-line!
See this thread for details.
The moose likes Architect Certification (SCEA/OCMJEA) and the fly likes RMI Quiz Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Certification » Architect Certification (SCEA/OCMJEA)
Bookmark "RMI Quiz" Watch "RMI Quiz" New topic
Author

RMI Quiz

Ray Ye
Ranch Hand

Joined: Jun 02, 2004
Posts: 58
If an RMI parameter implements java.rmi.Remote, how is it passed "on-the-wire?"
Choice 1It can never be passed.
Choice 2It is passed by value.
Choice 3It cannot be passed because it implements java.rmi.Remote.
Choice 4It cannot be passed unless it ALSO implements
java.io.Serializable.
Choice 5It is passed by reference.

I think 5 is closest, though it is not strictly "pass by reference" but passing the stub to simulate pass by reference.

Any thoughts?
Anonymous
Ranch Hand

Joined: Nov 22, 2008
Posts: 18944
a trick.
java.rmi.Remote I means it is a SessionBean or Entity bean so its stub will be passed over IIOP over TCP-ip ..
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
 
subject: RMI Quiz
 
Similar Threads
EJB 3.0 and java.rmi.Remote
objects passed by reference
Passed!
call by reference
Part I Mock on EJB, RMI