ExceptionHandling
ExceptionHandling
BufferedReader;
import java.io.FileReader;
import java.io.IOException;
try {
readFile("nonexistentfile.txt");
} catch (IOException e) {
System.out.println("Caught IOException: " + e.getMessage());
} finally {
System.out.println("Finished IOException Handling.");
}
}