added case where finally is not executed (#26521)

pull/28066/head^2
Maddineni Akhil 2019-01-06 23:22:37 +05:30 committed by Manish Giri
parent 73087fb8f6
commit 835e1a59f5
1 changed files with 2 additions and 0 deletions

View File

@ -42,5 +42,7 @@ try {
The above code works fine even though the catch statement is not used.
Note: If program exits abnormally (ie. `System.exit()` or process aborts), `finally` block will not be executed.
#### More Information:
- [Oracle Java Docs : Finally keyword](https://docs.oracle.com/javase/specs/jls/se7/html/jls-14.html#jls-14.20.2)