RMI: Pass by Value or by Reference?

前端 未结 2 1230
半阙折子戏
半阙折子戏 2021-01-21 06:12

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

2条回答
  •  广开言路
    2021-01-21 06:56

    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.

提交回复
热议问题