This week's book giveaway is in the OCMJEA forum.
We're giving away four copies of OCM Java EE 6 Enterprise Architect Exam Guide and have Paul Allen & Joseph Bambara 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 OCM Java EE 6 Enterprise Architect Exam Guide this week in the OCMJEA 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: 59
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 ..
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: RMI Quiz