Multiple Choice
You want to create a stream of the lines in a file with a given path.Which method should you use?
A) Paths.lines
B) Stream.of
C) Files.lines
D) Files.stream
Correct Answer:

Verified
Correct Answer:
Verified
Related Questions
Q7: Which of the following expressions returns an
Q8: You want to save a stream of
Q9: You want to save stream values in
Q10: The constructor reference Student[]::new is a shorthand
Q11: Complete the following statement that creates a
Q13: Complete the following code snippet that determines
Q14: Which method yields a stream obtained by
Q15: Complete the following code snippet that counts
Q16: Complete the following code snippet that removes
Q17: Which method yields a stream of all