Can we use catch statement for checked exceptions?
Answer / Dharmendra Meena
No, we cannot directly use a catch block to handle checked exceptions in Java. Checked exceptions must be either handled within the method that throws them or propagated to the calling method by declaring them as thrown exceptions in the method signature.
| Is This Answer Correct ? | 0 Yes | 0 No |
What is default exception handling in java?
What is a class in java?
Can we declare register variable as global?
while creating thread why we extend thread class
What is a java lambda expression?
Can we call the constructor of a class more than once for an object?
Difference between overriding and overloading in java?
What is the static variable?
How u dubugg ur project?
How infinite loop is declared?
Name the package that most of the AWT events that supports event-delegation model are defined?
Define iterator and methods in iterator?