From 835e1a59f5433aec8e020ffa5fa081d368d849e3 Mon Sep 17 00:00:00 2001 From: Maddineni Akhil Date: Sun, 6 Jan 2019 23:22:37 +0530 Subject: [PATCH] added case where finally is not executed (#26521) --- guide/english/java/finally-keyword/index.md | 2 ++ 1 file changed, 2 insertions(+) diff --git a/guide/english/java/finally-keyword/index.md b/guide/english/java/finally-keyword/index.md index ba490e4dee..002472eabf 100644 --- a/guide/english/java/finally-keyword/index.md +++ b/guide/english/java/finally-keyword/index.md @@ -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)