Styrow.dev
Question 221 of 247
Java Topic: General medium

Is it necessary that each try block must be followed by a catch block?

Question

Is it necessary that each try block must be followed by a catch block?

Answer

It is not necessary that each try block must be followed by a catch block. It should be followed by either a catch block or a finally block.