What is the role of Remote Interface in RMI?

Technology CommunityCategory: JavaWhat is the role of Remote Interface in RMI?
VietMX Staff asked 3 years ago

The Remote interface serves to identify interfaces whose methods may be invoked from a non-local virtual machine. Any object that is a remote object must directly or indirectly implement this interface. A class that implements a remote interface should declare the remote interfaces being implemented, define the constructor for each remote object and provide an implementation for each remote method in all remote interfaces.