Will finally be called always if all code has been kept in try block ?

Search Interview Questions

 More than 3000 questions in repository.
 There are more than 900 unanswered questions.
Click here and help us by providing the answer.
 Have a video suggestion.
Click Correct / Improve and please let us know.
Label / Company      Label / Company / Text


Interview Questions and Answers

 Q1. Will finally be called always if all code has been kept in try block ?Core Java
Ans. The only time finally won't be called is if you call System.exit() or if the JVM crashes first.

 Help us improve. Please let us know the company, where you were asked this question :   

   Like         Discuss         Correct / Improve     java   exceptions   exception handling   try   catch   finally   system   system.exit

Related Questions

  What are various types of Class loaders used by JVM ?
  What is a Deadlock ?
  What is the difference between time slicing and preemptive scheduling ?
  Difference between Process and Thread ?
  Which of the following syntax is correct ?import static java.lang.System.*;or static import java.lang.System.*;
 What will happen if we call perform(null) ?

public void perform(Object obj) {

public void perform(Integer int) {
 What will be the output of following code ?

 What will be the output of

 What is System.in in Java ?
 Explain System.out.println ?

Help us and Others Improve. Please let us know the questions asked in any of your previous interview.

Any input from you will be highly appreciated and It will unlock the application for 10 more requests.

Company Name:
Questions Asked: