File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
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 REST with Spring (video course) this week in the Spring forum!
JavaRanch » Java Forums » Certification » Architect Certification (SCEA/OCMJEA)
Bookmark "RMI Quiz" Watch "RMI Quiz" New topic

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
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?
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:
subject: RMI Quiz
It's not a secret anymore!