Computer Science, asked by TbiaSamishta, 1 year ago

Which of the following block handles or takes appropriate action when an Exception occurs ?(a) try (b) catch(c) throws (d) handles

Answers

Answered by Secondman
2

"Option: b, catch.

    The block of statements that takes appropriate action when an exception occurs is a catch block. So, the correct choice of answer for the given question from the list of possible answers is (b) catch. A catch block is always used in combination with a try block.

   That’s while they’re always referred to singularly as a try-catch block. A try block contains the code which requires exception handling. Whenever an exception occurs inside a try block, the program flow is handled to its catch block and then the catch block deals with the error after printing the suitable message.

"

Answered by drjiya123
1

B) catch

Hope it helps

Mark it as brainliest if you are satisfied with the answer

Similar questions