What is a stream in Java 8?
a) A type of input/output stream for reading and writing files
b) A sequence of objects that can be processed in parallel
c) A data structure that holds key-value pairs
d) A type of network socket
Answer: b) A sequence of objects that can be processed in parallel.
Explanation: Streams are a new type of collection in Java 8 that allows for efficient processing of large datasets in parallel.