+ 1
why catch used in file handling
4 odpowiedzi
+ 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.