0 votes
in JAVA by

 Which method is used to convert a stream of objects into a list in Java?

a) toArray()

b) toList()

c) toSet()

d) toMap()

1 Answer

0 votes
by

Solution: b) toList()

Explanation: The toList() method is used to convert a stream of objects into a list in Java.

...