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 identifier with example?
What is nan in java?
What is the difference between Stream Reader and Stream Writer?
What are exceptions
what is the swingutilities.invokelater(runnable) method for? : Java thread
In case of inheritance what is the execution order of constructor and destructor?
What things should be kept in mind while creating your own exceptions in java?
Justify your answer that you can't define a method inside another method in java, if you can then how?
What is the generic class?
What is a Null object?
what is the purpose of the final in the try-catch-final
What is stack class in java?