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 mean by String and StringBuffer? What is mean by Methooverriding and Overloading?
What do you mean by hashing?
what is mutual exclusion? How can you take care of mutual exclusion using java threads? : Java thread
What is computer compiler?
What is meant by string is immutable?
What is a line break?
What do you mean by an object in java?
What is singleton service?
What is a lightweight component?
Explain the usage of this with constructors?
Define array. Tell me about 2-D array.
Can we iterate through collection using for loop?