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
What is java command?
Why pointers are not used in java?
What is the significance of continue jump statement? Explain with an example.
Do I need java for windows 10?
What is the console in java?
Can a constructor be made final?
What is a generic type?
What is e java?
What is structure of java heap? What is perm gen space in heap?
What is the purpose of a transient variable?
Which is bigger float or double?
What is treeset in java collection?
What is canonical name in java?
What is java util concurrentmodificationexception?
What is basic syntax?