DRAG DROP
You are developing an application that reads information from a file.
The application must:
Execute a block of code if there is an error accessing the file
Execute a second block of code whether or not there is an error accessing the file
You need to ensure that the error handling requirements are met.
Which three statements should you implement in sequence? (To answer, move the appropriate statements from the list of actions to the answer area and arrange them in the correct order.)
A.
Explanation:
try
catch(e)
finnaly
The fileopen statement is put within the try clause.
The catch(e) will catch a fileopen error.
The finally clause will be executed regardless of whether an error occurs in the try clause proceeding it