View Single Post
  #1 (permalink)  
Old 04-06-2008, 07:55 PM
aytidaalkuhs aytidaalkuhs is offline
Member
 
Join Date: Apr 2008
Posts: 3
aytidaalkuhs is on a distinguished road
Where does the exception go?
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.
Code:
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
Reply With Quote
Sponsored Links