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 |
Explain about static nested classes in java?
What is a native method?
Is java call by value?
Garbage collection in java?
Explain about anonymous inner classes in java?
What is treeset in java collection?
Hi friends i want display Triangle shap stars(*) please can tell me any one java code logic? * *** ***** ******* Like this
What sorting algorithm does javascript use?
What does serializing data mean?
What is Java Reflection API? Why it’s so important to have?
What is a JAR file?
what is a static block?