WHAT IS FINALLY BLOCK?

Mayank Tripathi

Total Post:807

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

    Post:807

    Points:4035
    What is finally block?

    Java finally block is a block that is used to execute important code such as closing connection, stream etc.

    Java finally block is always executed whether exception is handled or not.

    Java finally block must be followed by try or catch block.


Answer

NEWSLETTER

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