0 votes
in JAVA by

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

1 Answer

0 votes
by

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.

Related questions

0 votes
asked Apr 30 in JAVA by john ganales
0 votes
asked May 14, 2023 in JAVA by john ganales
...