Which catch block should be written first when handling multiple exceptions?

  • AOrder Irrelevant
  • BGeneral
  • CSpecific
  • DNone of these
Show answerHide answer

Correct answer C

Specific exceptions should be caught before general ones to avoid being overshadowed. Writing a general exception first can prevent specific exception blocks from executing.