Home > DeveloperSection > Interviews > What is finally block?

Posted on    April-23-2015 12:38 AM

 Java Exception Handling  Java 
 1 Answer(s)
  516  View(s)
Rate this:

Mayank Tripathi
Mayank Tripathi

Total Post:807

Posted on    April-23-2015 12:38 AM

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.

Don't want to miss updates? Please click the below button!

Follow MindStick