Java Remote Method Invocation (RMI) is a way for one computer to call a function on another computer, over a network. It works like a normal function call, but RMI sends your request to the other computer and the other computer executes the function. Then, it sends the answer back to your computer, so that you can use it in your program.