Solved

Which of the Following Statements Is False

Question 41

Multiple Choice

Which of the following statements is false


A) Typically resource-release code should be placed in a finally block to ensure that a resource is released, regardless of whether there were exceptions when the resource was used in the corresponding try block.
B) The using statement simplifies writing code in which you obtain a resource, use the resource in a try block and release the resource in a corresponding finally block.
C) A file-processing app could process a file with a using statement to ensure that the file is closed properly when it's no longer needed.
D) The resource in a using statement must be an object that implements the IDiscardable interface.

Correct Answer:

verifed

Verified

Unlock this answer now
Get Access to more Verified Answers free of charge

Related Questions