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 |
Difference between Web-based applications,Client- Server applications and Distributed applications?
Does java allow overriding static methods ?
What is java life cycle?
how to create multithreaded program? Explain different ways of using thread? : Java thread
Which variable is the independent variable?
How is java created?
What is the difference between Array and Hash Table?
Is java hashset ordered?
Can you add null to a list java?
what is the purpose of class "Object" which is base class for all classes?
List methods available in Java Queue interface
What is basic syntax?