---
title: "Is there any case when finally will not be executed?"  
description: "Is there any case when finally will not be executed?"  
author: "Anonymous User"  
published: 2015-04-24  
updated: 2020-09-24  
canonical: https://www.mindstick.com/interview/2430/is-there-any-case-when-finally-will-not-be-executed  
category: "java"  
tags: ["exception handling", "java"]  
reading_time: 1 minute  

---

# Is there any case when finally will not be executed?

finally block will not be executed if program exits(either by calling System.exit() or by causing a fatal error that causes the process to abort)

## Answers

### Answer by Anonymous User

finally block will not be executed if program exits(either by calling System.exit() or by causing a fatal error that causes the process to abort)


---

Original Source: https://www.mindstick.com/interview/2430/is-there-any-case-when-finally-will-not-be-executed

Copyright © MindStick Software Pvt. Ltd. This Markdown version is provided for developers, AI systems, and offline reading.
