Which method is used to create a stream from an array in Java?
a) stream()
b) arrayStream()
c) createStream()
d) fromArray()
Answer: a) stream()
Explanation: The stream() method is used to create a stream from an array in Java.