1 posts in topic
Flat View  Flat View

Posted By:   raja_raja
Posted On:   Tuesday, July 8, 2003 06:42 AM

what are the importances of finally block

Re: Exceptions

Posted By:   Christopher_Koenigsberg  
Posted On:   Tuesday, July 8, 2003 07:06 AM

You can use them for resource cleanup. For instance, with JDBC code, a "finally" block is a good place to close resultsets + statements + connections regardless of whether something succeeded or failed, regardless of whether you caught an exception or not.

About | Sitemap | Contact