Home
Recent Q&A
Java
Cloud
JavaScript
Python
SQL
PHP
HTML
C++
Data Science
DBMS
Devops
Hadoop
Machine Learning
Azure
Blockchain
Devops
Ask a Question
Which method is used to convert a stream of objects into an array in Java?
Home
JAVA
Which method is used to convert a stream of objects into an array in Java?
0
votes
asked
May 7
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
by
SakshiSharma
Solution: a) toArray()
Explanation: The toArray() method is used to convert a stream of objects into an array in Java.
...