Login
Remember
Register
Ask a Question
Which method is used to convert a stream of objects into an array in Java?
0
votes
asked
May 7, 2024
in
JAVA
by
SakshiSharma
Which method is used to convert a stream of objects into an array in Java?
a) toArray()
b) toList()
c) toSet()
d) toMap()
objects
array
java
Please
log in
or
register
to answer this question.
1
Answer
0
votes
answered
May 7, 2024
by
SakshiSharma
Solution: a) toArray()
Explanation: The toArray() method is used to convert a stream of objects into an array in Java.
...