Solved

What Is Demonstrated by the Following Code

Question 21

Multiple Choice

What is demonstrated by the following code?
Try
{
(try block statements . . .)
}
Catch(NumberFormatException | IOException ex)
{
RespondToError() ;
}


A) Multi-catch, a catch clause that can handle more than one exception, beginning in Java 7
B) A catch clause that can handle either exception type, but not both
C) A conditional catch clause prototype that uses an overloaded OR operator to bind exception types
D) This code is not supported in any version of Java, an error will result.

Correct Answer:

verifed

Verified

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

Related Questions