Thomas SMETS
Posts: 307
Nickname: tsmets
Registered: Apr, 2002
|
|
Re: exception handling
|
Posted: Jul 31, 2002 4:48 PM
|
|
What don't you understand ? try
{
System.out.println ("Before throwing an Exception");
throw new Exception ("firstException");
} finally
{
System.out.println ("finally is executed");
throw new Exception ("second exception");
}
Running the code you should get : Before throwing an Exception. finally is executed
AFAIK only the first Exception should be visible, not the second.
Thomas SMETS,
|
|