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.

Related questions

0 votes
asked Apr 7 in Nagios by Robin
0 votes
asked Oct 9, 2022 in JavaScript by Robin
...