Question
Can static block throw exception?
Answer
Yes, static block can throw only Runtime exception or can use a try-catch block to catch checked exception.
š² Practice Offline on Mobile: Download the free QA Automation & SDET Prep app on Google Play & App Store.