Multiple Choice
Your program wishes to open a file named C:\java\myProg\input.txt on a Windows system.Which of the following is the correct code to do this?
A) inputFile = new File("c:\java\myProg\input.txt") ;
B) inputFile = new File.open("c:\\java\\myProg\\input.txt") ;
C) inputFile = new File("c:\\java\\myProg\\input.txt") ;
D) inputFile = new File.open("c:\java\myProg\input.txt") ;
Correct Answer:

Verified
Correct Answer:
Verified
Q61: When a program throws an exception within
Q62: Which of the following statements about assertions
Q63: Under which condition will the Scanner constructor
Q64: Consider the following code snippet. <img src="https://d2lvgg3v3hfg70.cloudfront.net/TB7392/.jpg"
Q65: Insert the missing code in the following
Q67: An example of a fatal error that
Q68: Insert the missing code in the following
Q69: Which of the following statements about command
Q70: Insert the missing code in the following
Q71: Assuming that inputFile is a Scanner object