Explain the “finally” block in Java exception handling.
brindha18 Answered question September 7, 2023
- The finally block in java is used to put important codes such as clean up code e.g. closing the file or closing the connection.
- The finally block executes whether exception rise or not and whether exception handled or not.
- A finally contains all the crucial statements regardless of the exception occurs or not.
Shathana. S.R. Answered question September 7, 2023
