Sr.Java Web Developer Question: Download Questions PDF
Tell us what is a finally block? Is there a case when finally will not execute?
Answer:
Finally block is a block which always executes a set of statements. It is always associated with a try block regardless of any exception that occurs or not.
Yes, finally will not be executed if the program exits either by calling System.exit() or by causing a fatal error that causes the process to abort.
Yes, finally will not be executed if the program exits either by calling System.exit() or by causing a fatal error that causes the process to abort.
Download Sr.Java Web Developer Interview Questions And Answers
PDF
Previous Question | Next Question |
Do you know what is the difference between frameworks like Jquery/DOJO and AJAX? | Explain me what is JDBC Connection interface? |