Kizspy | Question: 6
(Choose 1 answer)
FJOVERFLOW.COM
How can you handle multiple exception types in a try block in Java?
A. By writing a separate catch clause for each exception type.
B. By using a single catch clause to handle all exceptions.
C. By nesting multiple try blocks within a single catch clause.
D. By declaring all exception types in the try block.