Multiple choice technology business process management

a try block can be followed by

  1. catch,finally

  2. finally

  3. catch

  4. catch,catch,finally

Reveal answer Fill a bubble to check yourself
A,B,D Correct answer
Explanation

In Java, a try block must be followed by either a catch block, a finally block, or both. Option A shows catch+finally which is valid. Option B shows finally only which is also valid. Option D shows multiple catch blocks followed by finally, which is valid syntax for handling different exception types sequentially.