What happens when the Exception class is used in a catch clause to catch an exception?
What will be an ideal response?
When an exception is thrown, control transfers to the first catch clause that matches the exception. The Exception class, as the ancestor of all exceptions, will match any exception. Therefore, a catch clause that uses the Exception class will be processed every time unless a previous catch clause matched the exception.
Computer Science & Information Technology
You might also like to view...
You may edit a field name in only the datasheet view
Indicate whether the statement is true or false
Computer Science & Information Technology
What are the three steps that must be done using the loop control variable?
What will be an ideal response?
Computer Science & Information Technology