Lets say you have interface definition.
That interface can be Operation.
Then you have two applications running in different JVMs and communicating somehow remotely by exchanging Operation instances.
Lets call them application A and application B.
If application A implements Operation with the class that is not available in the classpath of the application B, will application B still be able to handle that implementation of interface? Even when B is in different JVM?
It depends on what you mean by ‘communicating somehow remotely’. If application A actually just hands application B some sort of token which is built into a proxy such that calls to the Operation interface are proxied back to application A, then it may be okay. If the idea is for application B to create a local instance of the implementation class, then that’s not going to work because it won’t know what the object looks like.