HCLTech Interview Question

Why RMI why not RPC? How a particular class gets loaded into memory?