Java - Exception Handling
Consider this code snippet:
What is the effect of wrapping the checked exception in a RuntimeException?
public void process() throws IOException {
try {
throw new IOException("File error");
} catch (IOException e) {
throw new RuntimeException(e);
}
}What is the effect of wrapping the checked exception in a RuntimeException?
