Multiple Choice
Consider the following code snippet.
Scanner inputFile = new Scanner("hoursWorked.txt") ;
Which of the following statements is correct?
A) This code will open an existing file named "hoursWorked.txt" for reading.
B) This code will create a new file named "hoursWorked.txt".
C) This code will treat the string "hoursWorked.txt" as an input value.
D) This code will open a file named "hoursWorked.txt" for writing.
Correct Answer:

Verified
Correct Answer:
Verified
Q83: Assuming that the string input contains the
Q84: Select the missing expression in the code
Q85: Consider the following code snippet.<br>Scanner inputFile =
Q86: What is recommended if the standard library
Q87: Which of the following statements about a
Q89: Which of the following is the correct
Q90: The PrintWriter class is an enhancement of
Q91: Assume inputFile is a Scanner object used
Q92: Which exception class should you use from
Q93: Your program must read in an existing