R

Ram Sharma • 3.40K Points
Extraordinary

Q. Which type of stream can be used for reading lines from a file?

  • (A) BufferedStream
  • (B) FileStream
  • (C) Stream<String>
  • (D) StringStream
  • Correct Answer - Option(C)
  • Views: 7
  • Filed under category Java
  • Hashtags:

Explanation by: Ram Sharma
`Files.lines()` returns a `Stream<String>` representing lines in a file.

You must be Logged in to update hint/solution

Discusssion

Login to discuss.

Be the first to start discuss.