Is it compulsory for a try block to be followed by a catch block in java for exception handling?
Answer / Manveer
No, it is not mandatory. However, if an exception occurs within the 'try' block and there is no corresponding 'catch' block to handle it, the program will terminate with an error.
| Is This Answer Correct ? | 0 Yes | 0 No |
What is the difference between yielding and sleeping in java programming?
What is OOPs & Why?
is it possible to instantiate the math class?
What is supplier in java?
what is auto boxing
What is static import?
What do you mean by of string::valueof expression in java 8?
How do you input a string in java?
What are advantages of using Java?s layout managers than windowing systems?
In what types of operations an ArithmeticException will be thrown?
What is flag in java?
How do you square a number?