0 votes
in JAVA by

Which of the following is true about parallel streams in Java 8?

a) They can improve the performance of some operations on large data sets.

b) They can only be used with sequential streams.

c) They always perform better than sequential streams, regardless of the data set size.

d) They can only be used with certain types of data, such as arrays.

1 Answer

0 votes
by

Answer: a) They can improve the performance of some operations on large data sets.

Explanation: Parallel streams can improve the performance of some operations on large data sets by dividing the work into multiple threads that can run concurrently on different cores of the CPU.

...