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.

...