Question: When we write to a file, we must use a try - catch block to instantiate a PrintWriter. What exception must we use in the
When we write to a file, we must use a trycatch block to instantiate a PrintWriter. What exception must we use in the catch block?
A ArithmeticException
B ArrayIndexOutOfBoundsException
C FileNotFoundException
D InputMismatchException
E NoSuchElementException
F NullPointerException
G NumberFormatException
H StringIndexOutOfBoundsException
I. none of the above
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
