MCQ
What will happen when a try block does not generate an Exception and you have included multiple catch blocks?
  • A
    they all execute
  • B
    only the first matching one executes
  • no catch block executes
  • D
    only the first catch block executes.

Answer

Correct option: C.
no catch block executes
no catch block executes

Need a full question paper?

Generate a complete, print-ready paper with questions like this in minutes — across 16+ boards, with answer keys.

Start Generating Free