Yes, RMI (Remote Method Invocation) can be used over the internet. RMI is a Java technology that allows a Java object in one system to invoke methods on a Java object residing in another system. It provides a mechanism for distributed computing and enables remote communication between Java programs. By utilizing network protocols such as TCP/IP, RMI allows objects to be accessed and manipulated across different machines connected through the internet, making it suitable for distributed applications and client-server architectures.
Check out the below video to learn more about RMI in Java -