Use of finally block in java - Java @ Desk

Sunday, May 19, 2013

Use of finally block in java

1) finally block comes in a combination of try-catch-finally or try-finally.
2) The code written in finally block will always gets executed even if the code in try or catch block fails to execute.
3) The importance of this block is to free out the resources if any.






No comments:

Post a Comment