how to make a un-checked exception as a checked exception one.
Answers were Sorted based on User's Feedback
Answer / janardhan
If a client can reasonably be expected to recover from an
exception, make it a checked exception. If a client cannot
do anything to recover from the exception, make it an
unchecked exception.
Is This Answer Correct ? | 1 Yes | 1 No |
Answer / suvarna
Wrapping Checked Exceptions in Unchecked Exceptions
try {
// ... some code that could throw IOException or
RemoteException
} catch(Exception ex) {
throw new RuntimeException(ex.toString());
}
Is This Answer Correct ? | 1 Yes | 2 No |
What is the difference between inheritance and encapsulation?
Difference between ‘>>’ and ‘>>>’ operators in java?
What is the purpose of premetive data types in java?
What are scalar data types?
primitive data types in Java ?
What is a reflection package?
Explain enumeration in java?
What is byte data type?
What is java reflection?
why is multiple inheritance not allowed in java?
7 Answers Elementus Technologies, Huawei, Infosys,
What is return type in java?
Explain about version control?