super
method call invokes the no-arg constructor
of
java.rmi.server.UnicastRemoteObject
, which "exports" the remote
object by listening for incoming calls to the remote object on an anonymous
port.
java.rmi.RemoteException
,
because RMI's
attempt to export a remote object during construction might fail if
communication resources are not available.
Although the call to the super
no-arg constructor occurs
by default if omitted,
it is included in this example to make clear the fact that Java constructs
the
superclass before the class.