Hi,
I've read it's good practice to use the instanceof
operator to check whether the passed reference to
an object is indeed an instance of the class of the
object it's compared to.
Since instanceof gives an exception if the passed
reference to an object does not belong to the same
class hierarchy, is it also good practice to
surround this
test by a try catch block handling
this exception?
Thanks, greetings
Gian Franco