- Multiple finally blocks in the same program are not allowed.
- The finally block does not contain any return, continue, break statements because it does not allow controls to leave the finally block.
- we can use multiple catch block in the same program.
- finally always executed in the block.
- The main purpose of finally block is to release the system resources.
- Can finally block be used without catch ? - Yes.
No comments:
Post a Comment