I\'m having trouble finding a clear answer to this question so I thought I\'d ask here with my own specific example:
I am creating a mulitplayer monopoly game. The actua
That depends on how you coded it.
Typically any client side objects that represent server side objects simply make remote calls with update the server side objects. The client side objects are nothing more than a facade over the transport protocols used to make the calls to the server.
If you used RMI, then it will follow this principle.
That depends if Bank
is an instance of Remote
or not. If so, then it will be passed by reference (if all is set up correctly), if not it'll be serialized and passed by value.
edit: Since your Bank
class is not Remote
, but is Serializable
, then it will be copied and passed by value.