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.
š² Practice Offline on Mobile: Download the free QA Automation & SDET Prep app on Google Play & App Store.