Dave Ford wrote:
>
> The reason I ask, is that I teach Java classes. My students ask me to
> explain why we need to "cast" AND "narrow". I have not been able to give a
> very satisfying answer.
>
javax.rmi.ProtableRemoteObject.narrow(Object, class) returns an Object.
This object must then be cast. narrow just 'checks'if the object of
remote or abstract interface *CAN* be cast to the desired class.

I guess that's why. it's all in the docs..

sven

--
======================================================================================
Sven van 't Veer                                              http://www.cachoeiro.net
Java Developer                                                      [EMAIL PROTECTED]
======================================================================================

===========================================================================
To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
of the message "signoff EJB-INTEREST".  For general help, send email to
[EMAIL PROTECTED] and include in the body of the message "help".

Reply via email to