Definition of STUB and Skeleton

Remote Method Invocation (RMI) provides a programmer, an ability to invoke methods remotely through objects when they are running on different virtual machines. Which means that two different machines connected to the Internet can communicate with each other in a…