Which three are
bad practices?
A.
Checking for ArrayIndexOutOfBoundsException when iterating through an array to determine when all elements have been visited
Checking for ArrayIndexOutOfBoundsException when iterating through an array to determine when all elements have been visited
B.
Checking for Error and if necessary, restarting the program to ensure that users are unaware problems
Checking for Error and if necessary, restarting the program to ensure that users are unaware problems
C.
Checking for FileNotFoundException to inform a user that a filename entered is not valid
Checking for FileNotFoundException to inform a user that a filename entered is not valid
D.
Checking for ArrayIndexOutOfBoundsExcepcion and ensuring that the program can recover if one occur
Checking for ArrayIndexOutOfBoundsExcepcion and ensuring that the program can recover if one occur
E.
Checking for an IOException and ensuring that the program can recover if one occurs
Checking for an IOException and ensuring that the program can recover if one occurs
I think the response is A,B,D. Because checking for FileNotFoundException and IOException exceptions are good practices.
RispondiEliminayou're absolutely right.
RispondiEliminaI was wrong to write the letter but the comment was right!
thank you very much