Question: why rmi is better than rpc?
Answer: RMI does the very same thing, but RMI passes a reference to the object and the method that is being called. 3. Better one: RMI is a better approach compared to RPC, especially with larger programs as it provides a cleaner code that is easier to identify if something goes wrong.