Sam is developing an application that enables the users to perform read and write operations on text files. He uses structured exception handling to handle the errors. He writes the code for closing all the files that were opened in the Finally block. Which of the following is true regarding the Finally block?
Finally block will be executed only if an error occurs
Finally block is executed after Catch block when no error occurs
Finally block is executed after Try block regardless of whether an error occurs
Finally block is executed only when no error occurs