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 maximum size of list in java?
What is a parameter example?
Is java hashset ordered?
How to prevent a field from serialization ?
Can java arraylist hold different types?
What does next mean in java?
what is Thread priority?
4 Answers Tech Mahindra, Wipro,
garbate collector(GC)?
How to change the priority of thread or how to set the priority of thread?
What are library required to connect to excel sheet.
Why do we create public static method in java?
How to reduce flicking in animation?