R

Ram Sharma • 3.40K Points
Extraordinary

Q. Which method is used to convert a list into a stream?

  • (A) List.toStream()
  • (B) Stream.of(list)
  • (C) list.stream()
  • (D) Stream.list()
  • Correct Answer - Option(C)
  • Views: 2
  • Filed under category Java
  • Hashtags:

Explanation by: Ram Sharma
`list.stream()` is used to get a stream from a list.

You must be Logged in to update hint/solution

Discusssion

Login to discuss.

Be the first to start discuss.