Win a copy of Functional Reactive Programming this week in the Other Languages forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

RMI Quiz

 
Ray Ye
Ranch Hand
Posts: 59
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 18944
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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 ..
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic