Home » JAVA Programming » Java Basic » Question
  1. What does Files.lines(Path path) do?
    1. It counts the number of lines for files at the path specified
    2. It reads all the files at the path specified as a String
    3. It reads all the lines from a file as a Stream
    4. It reads the filenames at the path specified
    5. None of these
Correct Option: C

Files.lines(Path path) that reads all lines from a file as a Stream.



Your comments will be displayed only after manual approval.