An exception is propagated
a) From a place where the error occurs to the handler in the catch block.
b) From the throw statement buried in the try block to the handler in the catch block.
c) From a throw statement, not in a try block to the handler in the catch block.
d) From the catch block to the try block.
e) From the handler in the throw block to the try block.
b) From the throw statement buried in the try block to the handler in the catch block.
Part a) is incomplete. Is the point of error in a try block? Does it throw an exception? Part c) A catch block cannot catch an exception that is thrown outside a try block. Part d) is backwards, and is incomplete. Part e) is little more than noise. There is no such thing as a “throw” block, and the try block contains throw statements, it catches nothing.
You might also like to view...
Which of the following attacks attempts to prevent legitimate users from accessing resources?
A. IP spoofing attack B. Denial-of-service attack C. Rogue code attack D. Social engineering attack
Sampling _______ refers to the number of times per second that a sound is measured during the recording process.
A. rate B. compression C. depth D. sound