A

Admin • 828.03K Points
Coach

Q. What happens if multiple catch blocks match the same exception?

  • (A) First matching catch block executes
  • (B) Last matching catch block executes
  • (C) All matching blocks execute
  • (D) Runtime error occurs

Explanation by: Admin
The first matching catch block is executed and others are skipped.

You must be Logged in to update hint/solution

Discusssion

Login to discuss.

Be the first to start discuss.