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

Verified
Correct Answer:
Verified
Q25: Which statement about handling exceptions is true?<br>A)
Q27: Consider the following code snippet: System.out.printf("%-12s%8.2f",description,totalPrice);<br>Which of
Q28: Insert the missing code in the following
Q29: Which of the following statements about using
Q31: Which of the following statements about exception
Q32: Insert the missing code in the following
Q33: Consider the following code snippet: throw IllegalStateException("This
Q34: Which String class method will remove spaces
Q35: Insert the missing code in the following
Q101: The _ method of the Character class