Win a copy of The Little Book of Impediments (e-book only) this week in the Agile and Other Processes forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Passing By referance/Value

 
sanneel paul
Ranch Hand
Posts: 47
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi
all
Can u plz explain me that
In ordinery method call java passes Object Referance by value.
While in remote call object is always copied.

Can you please focus more light on this please.

Thanx in advance
-Paul
 
miguel lisboa
Ranch Hand
Posts: 1281
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
this thread might answer your Qs
 
Roger Chung-Wee
Ranch Hand
Posts: 1683
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Oject arguments to remote methods are copied by deep-cloning through serialization. So, there will be the object on the caller's side and a copy of the object on the callee's side. This is quite different to core Java's local methods where a copy of the object reference is passed, but only one object will exist.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic