Which method is used to create a stream from a collection in Java?
a) stream()
b) collectionStream()
c) createStream()
d) fromCollection()
Answer: a) stream()
Explanation: The stream() method is used to create a stream from a collection in Java.