0 votes
in JAVA by

Which method is used to create a stream from a collection in Java?

a) stream()

b) collectionStream()

c) createStream()

d) fromCollection()

1 Answer

0 votes
by

Answer: a) stream()

Explanation: The stream() method is used to create a stream from a collection in Java.

Related questions

0 votes
asked May 7 in JAVA by SakshiSharma
0 votes
asked May 5 in JAVA by sharadyadav1986
...