ELI5: Explain Like I'm 5

Remote method invocation

Remote method invocation is like asking your friend who lives far away to do something for you. Say you want your friend to bring you a candy bar. Instead of you traveling to your friend's house to get the candy bar, you can use the phone or the computer to ask your friend to go get it for you and bring it back to you.

This is just like when a computer program needs information or something done from another program that is not on the same computer. It can use Remote Method Invocation (RMI) to call and use methods (or actions) from the other program. The computer programs communicate using a network connection and it’s like the programs share the same space even though they are on different computers. This way, programmers can build programs that can work together even if they are located in different parts of the world!
Related topics others have asked about: