added case where finally is not executed (#26521)
This commit is contained in:
committed by
Manish Giri
parent
73087fb8f6
commit
835e1a59f5
@ -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)
|
||||||
|
Reference in New Issue
Block a user