+ 2
Is it possible that we catch the exception without using try block?
4 Respuestas
+ 4
If it is a code error, no. The program will crash.
+ 1
You can avoid the exception with if-else statement only if the exception is unchecked (extends from RuntimeException).
0
exceptions can be handled with try-catch block. we cannot declare catch without try and even we cannot declare try without catch or finally.
0
Exception Handling is a mechanism to handle the runtime errors by based on "try and catch" or “throw and catch” principle. so we cannot catch the exceptions without try block.