The catch statement is always executed only executed if it i

The catch(...) statement is -always executed -only executed if it is the last catch statement and an exception is thrown -only executed if an exception is thrown and precedes the try block -always executed if it is the first in a list of catch blocks and an exception is thrown

Solution

The catch statement is only executed if an exception is thrown and precedes the try block.

The catch(...) statement is -always executed -only executed if it is the last catch statement and an exception is thrown -only executed if an exception is throw

Get Help Now

Submit a Take Down Notice

Tutor
Tutor: Dr Jack
Most rated tutor on our site