IS THERE ANY CASE WHEN FINALLY WILL NOT BE EXECUTED?

Mayank Tripathi

Total Post:807

Points:4035
Posted by  Mayank Tripathi
 596  View(s)
Ratings:
Rate this:
  1. Mayank Tripathi

    Post:807

    Points:4035
    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)

Answer

NEWSLETTER

Enter your email address here always to be updated. We promise not to spam!