in JAVA by

Which method is used to concatenate the elements of a stream into a single string in Java?

a) reduce()

b) collect()

c) join()

d) concatenate()

1 Answer

0 votes
by
Answer: c) join()

Explanation: The join() method is used to concatenate the elements of a stream into a single string in Java.
...