Multiple choice technology programming languages

A try block must always be followed by one or more catch blocks

  1. True

  2. False

Reveal answer Fill a bubble to check yourself
B Correct answer
Explanation

A try block must be followed by either catch blocks, a finally block, or both. It's valid to have try-finally without any catch blocks. The finally block provides optional cleanup.