Vidyalelo
Java Programming · Q47

Java Autoboxing

Programming · Java Programming · question 47

Q47

What does Files.lines(Path path) do?

A.
It reads all the files at the path specified as a String
B.
It reads all the lines from a file as a Stream
Answer
C.
It reads the filenames at the path specified
D.
It counts the number of lines for files at the path specified

Answer: Option B

Solution

Answer: Option B
No explanation is given for this question Let's Discuss on Board