> Implementationclass ic=(Implementationclass)r;
That should read MyInterface ic = (MyInterface)r;
> when RemoteObject is created, internally wht happend when it is
> created
It is 'exported' by the RMI Runtime system.
> how it is n/w enabled
This happens when it is exported by the RMI runtime system.
> wht happend when it is n/w enabled
It becomes ready to receive incoming remote calls via a TCP listening
socket.
> where println statements r diplayed
Wherever the JVM that executes them is running.
> plz tell me step by step procedure
1. A remote object is exported.
2. It can be bound in the RMI registry, or returned as the result of
another remote method.
3. The client acquires the stub for the object, from the Registry or via
another remote method on another remote object.
4. The client executes methods on the stub, which are marshalled and
passed over the network to the exporting JVM, where they are executed,
and the return value or exception is returned over the network to the
client.
You should read the the RMI Tutorial.