+ 1
why catch used in file handling
4 Answers
+ 2
tryâ
//some code
} catch (IOException e)
{
System.out.println (e);
}
+ 1
catch is always ysed with try block for catching the compile time error and for print it unless crashing the program at runtime !!
+ 1
try {
0
it is used to check for the type of exception that has occurred while handling the file.