Which of the following statements is false? The code in a catch block is executed only if
Question:
Which of the following statements is false?
The code in a catch block is executed only if anexception occurs.
A try block can be followed by any number of catchblocks.
The code in a finally block is executed only if thereare no catch blocks.
The code in a finally block is executed if the try blockit follows is entered
The purpose of the try block is to |
catch an exception.
provide a place to put code that could fail.
release any resources acquired in the try block whether anexception occurs or not.
execute when an object is no longer needed.
What happens when the following code executes if myfile.txt doesnot exist, and you have permission to read and write the directorywhere myfile.txt was supposed to be?
FileOutputStream stream = newFileOutputStream( |
Auditing a risk based approach to conducting a quality audit
ISBN: 978-1133939153
9th edition
Authors: Karla Johnstone, Audrey Gramling, Larry Rittenberg