Vidyalelo
Java Programming · Q22

Java Collections Framework

Programming · Java Programming · question 22

Q22

What is the purpose of the `toArray()` method in the Java Collections Framework?

A.
It sorts the collection
B.
It converts a collection to an array
Answer
C.
It reverses the collection
D.
None of These

Answer: Option B

Solution

Answer: Option B
No explanation is given for this question Let's Discuss on Board