Login
Remember
Register
CodersEditor Q&A
Online IDE
Questions
Unanswered
Tags
Users
Ask a Question
Programming Tutorials
Ask a Question
What is a finally block? Is there a case when finally will not execute?
0
votes
asked
Jan 20, 2021
by
abitha
(
1.6k
points)
java
Please
log in
or
register
to answer this question.
1
Answer
0
votes
answered
Jan 27, 2021
by
Annie
(
1.1k
points)
A finally block is always get executed whether the exception has occurred or not. Exit() or some similar code is written into try block then the program will automatically terminate and the finally block will not be executed in this case.
Please
log in
or
register
to add a comment.
Welcome to CodersEditor Q&A, where you can ask questions and receive answers from other members of the community.
239
questions
203
answers
2
comments
692
users
Related questions
What is the difference between execute, executeQuery, executeUpdate?
What is a copy constructor in Java?
What is a classloader in Java?
What is singleton class in Java and how can we make a class singleton?
What is the life-cycle of a servlet?
...