how to make a un-checked exception as a checked exception one.
Answer Posted / 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 |
Post New Answer View All Answers
how to create constants in java?
Explain java code for recursive solution's base case?
What is the difference between call by reference and call by pointer?
How to sort elements in a parallel array in java?
please send me hr interview questions in it industry
What is the use of list in java?
What is output buffer?
Explain the difference between map and flatmap stream operation?
Can we split string with in java?
What one should take care of, while serializing the object?
Do you know why doesn't the java library use a randomized version of quicksort?
What is super?
Can a class have an interface?
What are the different http methods?
What is fail fast in java?