0 votes
in JAVA by
Which method is used to convert a stream of objects into an array in Java?

a) toArray()

b) toList()

c) toSet()

d) toMap()

1 Answer

0 votes
by
Solution: a) toArray()

Explanation: The toArray() method is used to convert a stream of objects into an array in Java.

Related questions

0 votes
asked May 5 in JAVA by sharadyadav1986
0 votes
asked May 4 in JAVA by rahuljain1
...