posted 20 years ago
I dont think you will get both options in a question because one could argue that both are right and the exam questions are very clear, they avoid such type of confusion.
If I get such a question I would choose NoSuchObjectException because this is what the container is supposed to throw. (see page 379 of the spec). But again, it is a subclass of RemoteException, so it is not wrong to say that the remote client will see a RemoteException.
Regards,
Stefan
SCJP 1.4, SCBCD 1.3<br />IBM 141, 484, 486