Java - Exception Handling
Find the error in this code snippet:
public void open() throws FileNotFoundException {
// code
}
public void start() throws IOException {
open();
}Find the error in this code snippet:
public void open() throws FileNotFoundException {
// code
}
public void start() throws IOException {
open();
}FileNotFoundException is a subclass of IOException.throws IOException covers all its subclasses including FileNotFoundException.15+ quiz questions · All difficulty levels · Free
Free Signup - Practice All Questions