WHAT IS FINALLY BLOCK?

Mayank Tripathi

Total Post:807

Points:4035
Posted by  Mayank Tripathi
 909  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.


      Modified On Mar-28-2018 12:38:06 AM

Answer

NEWSLETTER

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