Which method can be used to create an input object for file temp.txt?

a. new Scanner("temp.txt")
b. new Scanner(temp.txt)
c. new Scanner(new File("temp.txt"))
d. new Scanner(File("temp.txt"))


c

Computer Science & Information Technology

You might also like to view...

What is the difference between a mnemonic and a tool tip?

What will be an ideal response?

Computer Science & Information Technology

How should the constructor for an array-based stack data type be designed to support user choice for stack size?

What will be an ideal response?

Computer Science & Information Technology

Prove that the scaling exponent of the deterministic scale-free network, as discussed in Sec- tion 5.11, is

Computer Science & Information Technology

In PHP, writing data to a file requires how many steps?

a. 2 b. 3 c. 4 d. 1

Computer Science & Information Technology