Question
Can we have the try block without catch block?
Answer
Yes, we can have the try block without catch block, but finally block should follow the try block. Note:It is not valid to use a try clause without either a catch clause or a finally clause.
š² Practice Offline on Mobile: Download the free QA Automation & SDET Prep app on Google Play & App Store.