Question: 3) If the data.xt file does not exist, what will happen when the following statement is executed? private public static Formatter outFile = new Formatter(data.txt);

3) If the data.xt file does not exist, what will happen when the following statement is executed? private public static Formatter outFile = new Formatter("data.txt"); a. An IOException will be thrown. c. A FileNotFoundException will be thrown. b. The file, data.txt, will be created. d. A compiler error will occur
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
