A finally block is used to execute a certain portion of code that must be executed, irrespective of whether or not an exception is caught. Even if a catch block is not found, a try block can still be used with a finally block. It allows a programmer to avoid having cleanup code accidentally bypassed by a return, continue, or break statement. A finally block does not execute only when a System.exit() statement is encountered or the program terminates due to an error.
- Download free practice test for CIW Master CIW Enterprise Developer exam.
- Click here to get free scbcd SCBCD exam practice questions.
- Click here to download scdjws test study guide and practice question.
- Download practice question and study guide for scjp for exam.
- Pass SUN scjp-5-0 - SCJP 5/6
- Download free practice test for scmad SCMAD exam.
- Click here to download scwcd test study guide and practice question.
- Get certified in first attempt download CX310-055 - Java 5.0 simulation.
- Click here to download CX310-056 test study guide and practice question.
- Download practice question and study guide for CX310-065 for exam.
- Get certified in first attempt download CX310-066 - SCJP Upgrade simulation.
If you like this article, please leave a comment or subscribe this blog via RSS or via e-mail, Bookmark and share through your network. Click the AddThis button below. Thanks.