Java RMI Remote Method Invocation (rmi) is an API that provides a mechanism to create distributed application in java.