int
double
either (a) or (b)
neither (a) nor (b)
Answer is Right!
Answer is Wrong!
The correct answer is: A. int
A catch block can catch an exception of a type that is a subtype of the type of the catch argument. In this case, an integer object is thrown
with a throw statement. The type of the catch argument is int, which is a subtype of the type of the exception being thrown. Therefore, the catch block has a usable match.Option B is incorrect because double is not a subtype of int.
Option C is incorrect because only one of the options is correct.
Option D is incorrect because the catch block has a usable match.