Question: Java Programming: Choose the answer for 1st, 2nd, and 3rd output. Thanks in advance. Show the output produced by the program segment below, assuming.that the

 Java Programming: Choose the answer for 1st, 2nd, and 3rd output.

Java Programming: Choose the answer for 1st, 2nd, and 3rd output. Thanks in advance.

Show the output produced by the program segment below, assuming.that the file datafile.txt exists and is opened successfully try System.out.println("Opening datafile.txt"); Scanner input new Scanner(new File("datafile.txt")); int number Integer.parseInt("not an integer"); System.out.println("Done"); catch (IOException exception) System.out.println("File not found"); catch (NumberFormatException exception) System.out.println("Integer not found"); catch (Exception exception) System.out.println("Not sure what happened"); 1st output line (select NONE if no output): 2nd output line (select NONE if no output): 3rd output line (select NONE if no output): ening datafile, Integer not fou NON Don Not sure what ha File not foun

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!