added case where finally is not executed (#26521)

This commit is contained in:
Maddineni Akhil
2019-01-06 23:22:37 +05:30
committed by Manish Giri
parent 73087fb8f6
commit 835e1a59f5

View File

@ -42,5 +42,7 @@ try {
The above code works fine even though the catch statement is not used. 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: #### More Information:
- [Oracle Java Docs : Finally keyword](https://docs.oracle.com/javase/specs/jls/se7/html/jls-14.html#jls-14.20.2) - [Oracle Java Docs : Finally keyword](https://docs.oracle.com/javase/specs/jls/se7/html/jls-14.html#jls-14.20.2)