May 2019
Beginner
528 pages
29h 51m
English
finally ClauseOperating systems typically can prevent more than one program from manipulating a file at once. When a program finishes processing a file, the program should close it to release the resource. This enables other programs to use the file (if they’re allowed to access it). Closing the file helps prevent a resource leak in which the file resource is not available to other programs because a program using the file never closes it.
finally Clause of the try StatementA try statement may have a finally clause as its last clause after any except clauses or else clause. The finally clause is guaranteed to execute, regardless of whether its try suite executes successfully or an exception occurs.8 In other languages that have ...
Read now
Unlock full access