public void readFile() throws Exception {
try {
FileInputStream dis = new FileInputStream("Hello.txt");
System.out.println(dis.read());
}
catch (FileNotFoundException fne) {
throw fne;
}
catch (IOException ioe) {
throw ioe;
}
finally {
throw new Exception("Final Exception");
}
}
Login in to like
Login in to comment