Answer the following questions true (T) or false (F)
1. The context in which an exception is handled (or managed) is the throw block.
2. Statements that cause an exception must be part of a try block.
1. False
Explanation: The context in which an exception is handled (or managed) is the catch block.
2. False
Explanation: Statements that cause an exception to be thrown need not be in a try block. However, if the exception is to be caught, the throw statement must be directly in the try block or there must be a call to a function that has the throw statement in the function in the try block.
You might also like to view...
What type of value is returned by the overloaded equality and relational operators for strings?
a. int b. bool c. double d. null
The text that accompanies images or videos is referred to as a(n) ________
Fill in the blank(s) with correct word
The TCP/IP network model Transport layer connects applications through the use of ____.
A. addresses B. ports C. hubs D. sockets
Other views for outlining a worksheet include summary totals or ________ totals
Fill in the blank(s) with correct word