Multiple catch blocks __________________

Multiple catch blocks __________________
A. Are mandatory for each try block
B. Can be combined into a single catch block
C. Are not possible for a try block
D. Can never be associated with a single try block
 
Answer: b
Explanation: The separate catch blocks for a single try block can be combined into a single catch block. All type of errors can be then handled in s single block. The type still have to be specified for the errors that might be produced.
 

Tìm kiếm

Back
Top