below is a code to implement a simple program of addition using RMI. When i implement the interface HELLOINTERFACE.java in HELLO.java, why do i have to make a constructor hello in hello.java ?
posted 2 years ago
Since we're talking about a no-argument constructor, normally the default constructor would suffice. But since the no-argument constructor of the class you're extending (UnicastRemoteObject) throws RemoteException, so must the one in this class - and the default constructor doesn't do that.