Java RMI - UnicastRemoteObject: what is the difference between UnicastRemoteObject.exportObject() and extends UnicastRemoteObject?

后端 未结 4 1580
暖寄归人
暖寄归人 2021-02-05 08:46

i\'m preparing for an exam and I\'m having a question that I hope someone here could answer me.

It\'s about RMI and remote objects. I wonder why there is so much differe

4条回答
  •  孤城傲影
    2021-02-05 09:33

    You can call the UnicastRemoteObject.exportObject() instead of extending the UnicastRemoteObject in a scenario where you need to extend any other class. Overall effect is the same I think.

    See this

提交回复
热议问题