0 votes
in JAVA by
What is the purpose of the Stream.Builder interface in Java 8?

a) To provide a builder for creating Stream objects.

b) To provide a builder for creating Collection objects.

c) To provide a builder for creating Comparator objects.

d) To provide a builder for creating Function objects.

1 Answer

0 votes
by

Answer: a) To provide a builder for creating Stream objects.

Explanation: The Stream.Builder interface is used to create and modify a stream of elements, by adding or removing elements to the stream.

Related questions

0 votes
asked Apr 28 in JAVA by Robin
0 votes
asked Apr 26 in JAVA by SakshiSharma
...