Java Reference
In-Depth Information
The finally block will be executed whenever execution leaves a try/catch block, no mat-
ter what conditions cause it. That is, whether the try block ends normally, or because of
an exception, the last code executed is that defined by finally . The finally block is also
executed if any code within the try block or any of its catch statements return from the
method.
Here is an example of finally :
Search WWH ::




Custom Search