aspose file tools*
The moose likes Programmer Certification (SCJP/OCPJP) and the fly likes Exception Problem Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of EJB 3 in Action this week in the EJB and other Java EE Technologies forum!
JavaRanch » Java Forums » Certification » Programmer Certification (SCJP/OCPJP)
Bookmark "Exception Problem" Watch "Exception Problem" New topic
Author

Exception Problem

victor kamat
Ranch Hand

Joined: Jan 10, 2007
Posts: 247

The output of the above code is
finally
3

Why does the catch block in main not execute ?


[HENRY: Added Code Tags]
[ January 17, 2007: Message edited by: Henry Wong ]
marc weber
Sheriff

Joined: Aug 31, 2004
Posts: 11343

See this thread.


"We're kind of on the level of crossword puzzle writers... And no one ever goes to them and gives them an award." ~Joe Strummer
sscce.org
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: Exception Problem
 
Similar Threads
exceptions
Use of finally
About Exception Handling
Exception Handling
Nested try-finally block