[ August 23, 2006: Message edited by: Keith Lynn ]
Joined: Jul 04, 2006
Joined: Feb 07, 2005
If you add a print statement in the catch block to see the type of exception it is, you will see that it is a ClassCastException.
So the attempt to cast the Throwable object to an Exception causes the ClassCastException. Since ClassCastException is a subclass of Exception, the catch block will catch it. [ August 23, 2006: Message edited by: Keith Lynn ]