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.
Can static block throw exception?
Yes, static block can throw only Runtime exception or can use a try-catch block to catch checked exception.