I was doing some file handling recently and used the read() method of the FileInputStream class. The read() method throws an IOException. I came across code (and used it as well) that looks like the snippet below.
class fileRead{
public static void main(String []a) throws IOException {
//do file handling here and call read as well
}
}
Now, what i want to know is that who handles the IOException? Is it the JVM? If yes, how does it do it. If no, please help.
waiting...
aytidaalkuhs