What does the following statement do?

```
Scanner scanner = new Scanner(Paths.get("test.txt"));
```


a. Opens a binary file for input.
b. Opens a binary file for output.
c. Opens a text file for input.
d. Opens a text file for output.


c. Opens a text file for input.

Computer Science & Information Technology

You might also like to view...

List all guests currently staying at the Grosvenor Hotel.

What will be an ideal response?

Computer Science & Information Technology

Computers with low-bandwidth connections are more susceptible to hackers

Indicate whether the statement is true or false

Computer Science & Information Technology

Which argument of the onItemClick method holds the value of the array element in the View adapter?

A. parent B. view C. position D. id

Computer Science & Information Technology

Instance methods must have the static keyword in their heading.

Answer the following statement true (T) or false (F)

Computer Science & Information Technology