Multiple Choice
Which of the following is the correct syntax for creating a File object?
A) File inFile = File("input.txt")
B) File inFile = new File("input.txt")
C) File inFile = File.open("input.txt")
D) File inFile = new File.open("input.txt")
Correct Answer:

Verified
Correct Answer:
Verified
Related Questions
Q90: When reading words with a Scanner object,
Q91: Under which condition will the Scanner constructor
Q92: Consider the following code snippet: Scanner in
Q93: Which of the following statements reflects the
Q94: An example of a fatal error that
Q96: Consider the following code snippet: public static
Q97: Insert the missing code in the following
Q98: When you start a Java program from
Q99: The PrintWriter class is an enhancement of
Q100: When a program throws an exception within